@digital-ai/dot-components 4.25.1 → 4.26.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/index.esm.js +30692 -30472
- package/package.json +4 -3
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.styles.d.ts +1 -1
- package/src/lib/components/analytics/dashboard-categories-autocomplete/DashboardCategoriesAutoComplete.d.ts +1 -1
- package/src/lib/components/app-toolbar/AppToolbar.data.d.ts +0 -1
- package/src/lib/components/auto-complete/AutoComplete.d.ts +3 -1
- package/src/lib/components/auto-complete/utils/interface.d.ts +3 -1
- package/src/lib/components/board/board/Board.context.d.ts +0 -1
- package/src/lib/components/board/column/Column.context.d.ts +0 -1
- package/src/lib/components/card/Card.d.ts +3 -1
- package/src/lib/components/card/CardHeader.d.ts +3 -1
- package/src/lib/components/card/CardHeader.styles.d.ts +1 -0
- package/src/lib/components/css-grid/CssCell.d.ts +0 -1
- package/src/lib/components/date-picker/DatePicker.styles.d.ts +0 -1
- package/src/lib/components/file-upload/FileListItem.styles.d.ts +2 -12
- package/src/lib/components/file-upload/FileUpload.d.ts +0 -1
- package/src/lib/components/file-upload/FileUpload.styles.d.ts +2 -2
- package/src/lib/components/form-controls/FormControl.styles.d.ts +2 -1
- package/src/lib/components/list/List.styles.d.ts +2 -1
- package/src/lib/components/menu/Menu.styles.d.ts +5 -8
- package/src/lib/components/popper/Popper.styles.d.ts +5 -8
- package/src/lib/components/progress-button/ProgressButton.styles.d.ts +0 -1
- package/src/lib/components/time-picker/TimePicker.styles.d.ts +9 -1
- package/src/lib/theme-provider/colors/light-theme-colors.d.ts +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-ai/dot-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.26.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE.md>",
|
|
6
6
|
"contributors": [
|
|
@@ -55,5 +55,6 @@
|
|
|
55
55
|
"react": "^17.0.2 || ^18.0.0"
|
|
56
56
|
},
|
|
57
57
|
"module": "./index.esm.js",
|
|
58
|
-
"type": "module"
|
|
59
|
-
|
|
58
|
+
"type": "module",
|
|
59
|
+
"types": "./index.esm.d.ts"
|
|
60
|
+
}
|
|
@@ -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, additionalLabelContent, actionItem, ai, aiAction, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, informationToolTip, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, popperPlacement, popperZIndex, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, trimLongOptions, 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, additionalLabelContent, actionItem, ai, aiAction, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disableCloseOnSelect, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, informationToolTip, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, popperPlacement, popperZIndex, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, trimLongOptions, 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>;
|
|
@@ -2,4 +2,4 @@ import { AutoCompleteProps } from '../../auto-complete';
|
|
|
2
2
|
export interface DashboardCategoriesAutoCompleteProps extends AutoCompleteProps {
|
|
3
3
|
onNewCategory: (newCategory: string) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare function DashboardCategoriesAutoComplete({ freesolo, actionItem, onInputChange, onNewCategory, ...args }: Readonly<DashboardCategoriesAutoCompleteProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function DashboardCategoriesAutoComplete({ freesolo: _freesolo, actionItem: _actionItem, onInputChange, onNewCategory, ...args }: Readonly<DashboardCategoriesAutoCompleteProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,6 +29,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
29
29
|
defaultValue?: AutoCompleteValue;
|
|
30
30
|
/** Controls size of chip spacing within the autocomplete **/
|
|
31
31
|
dense?: boolean;
|
|
32
|
+
/** If `true`, the popup won't close when a value is selected. */
|
|
33
|
+
disableCloseOnSelect?: boolean;
|
|
32
34
|
/** Disable the portal behavior. If true, children stay within parent DOM hierarchy. */
|
|
33
35
|
disablePortal?: boolean;
|
|
34
36
|
/** If true, the input will be disabled. */
|
|
@@ -108,4 +110,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
108
110
|
/** If true, the label will be displayed in a warning state. */
|
|
109
111
|
warning?: boolean;
|
|
110
112
|
}
|
|
111
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, additionalLabelContent, actionItem, ai, aiAction, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, informationToolTip, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, popperPlacement, popperZIndex, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, trimLongOptions, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, additionalLabelContent, actionItem, ai, aiAction, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disableCloseOnSelect, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, informationToolTip, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, popperPlacement, popperZIndex, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, trimLongOptions, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,8 +4,10 @@ export interface ActionItem {
|
|
|
4
4
|
iconId?: string;
|
|
5
5
|
/** Event callback */
|
|
6
6
|
onClick: (inputText?: string) => void;
|
|
7
|
-
/** If
|
|
7
|
+
/** If true, it will prevent duplicate item insertion */
|
|
8
8
|
preventDuplicateInsertion?: boolean;
|
|
9
|
+
/** If true, prevents the action callback from executing when the Enter key is pressed while the input field is focused */
|
|
10
|
+
preventEnterActionFromInput?: boolean;
|
|
9
11
|
/** Text/Node displayed */
|
|
10
12
|
text?: string | ReactNode;
|
|
11
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IBoardColumnStatusContext, IColumnStatusProvider } from '../interfaces';
|
|
3
2
|
export declare const BoardColumnStatusContext: import("react").Context<IBoardColumnStatusContext>;
|
|
4
3
|
export declare const useColumnStatus: () => IBoardColumnStatusContext;
|
|
@@ -2,5 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { CommonProps } from '../CommonProps';
|
|
3
3
|
export interface CardProps extends CommonProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
onMouseEnter?: () => void;
|
|
6
|
+
onMouseLeave?: () => void;
|
|
5
7
|
}
|
|
6
|
-
export declare const DotCard: ({ ariaLabel, children, className, "data-testid": dataTestId, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const DotCard: ({ ariaLabel, children, className, "data-testid": dataTestId, onMouseEnter, onMouseLeave, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,8 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
9
9
|
avatar?: ReactNode;
|
|
10
10
|
/** Card subheader */
|
|
11
11
|
subheader?: string;
|
|
12
|
+
/** Card subheader maximum number of lines (default is 1) */
|
|
13
|
+
subheaderMaxLines?: number;
|
|
12
14
|
/** Card subheader size */
|
|
13
15
|
subheaderSize?: SubheaderSize;
|
|
14
16
|
/** Card title */
|
|
@@ -18,4 +20,4 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
18
20
|
/** Card title size */
|
|
19
21
|
titleSize?: TitleSize;
|
|
20
22
|
}
|
|
21
|
-
export declare const DotCardHeader: ({ action, ariaLabel, avatar, className, "data-testid": dataTestId, subheader, subheaderSize, title, titleMaxLines, titleSize, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const DotCardHeader: ({ action, ariaLabel, avatar, className, "data-testid": dataTestId, subheader, subheaderMaxLines, subheaderSize, title, titleMaxLines, titleSize, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-card-header";
|
|
2
2
|
interface StyledCardHeaderProps {
|
|
3
|
+
$maxSubheaderLines: number;
|
|
3
4
|
$maxTitleLines: number;
|
|
4
5
|
}
|
|
5
6
|
export declare const StyledCardHeader: import("styled-components").StyledComponent<import("@mui/material").OverridableCardHeader, any, StyledCardHeaderProps, never>;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { ListItem } from '@mui/material';
|
|
2
2
|
export declare const rootClassName = "dot-file-list-item";
|
|
3
|
-
export declare const StyledFileListItem:
|
|
4
|
-
href: string;
|
|
5
|
-
} & {
|
|
6
|
-
button: true;
|
|
7
|
-
} & import("@mui/material").ListItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
|
-
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
9
|
-
}, "button" | "style" | "className" | "tabIndex" | "children" | "autoFocus" | "disabled" | "action" | "selected" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "components" | "componentsProps" | "slotProps" | "slots" | "alignItems" | "ContainerComponent" | "ContainerProps" | "dense" | "disableGutters" | "disablePadding" | "divider" | "secondaryAction">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
10
|
-
button: true;
|
|
11
|
-
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
12
|
-
button?: false;
|
|
13
|
-
}, "li">>;
|
|
3
|
+
export declare const StyledFileListItem: typeof ListItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const rootClassName = "dot-file-upload";
|
|
2
|
-
export declare const containerClassName
|
|
3
|
-
export declare const dropZoneClassName
|
|
2
|
+
export declare const containerClassName = "dot-file-upload-container";
|
|
3
|
+
export declare const dropZoneClassName = "dot-file-upload-drop-zone";
|
|
4
4
|
export declare const StyledFileUploadContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const StyledFileUpload: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FormControl } from '@mui/material';
|
|
1
2
|
export declare const rootClassName = "dot-form-group";
|
|
2
3
|
export declare const groupLabelClassName = "dot-form-group-label";
|
|
3
4
|
export declare const startAdornmentClassName = "dot-start-adornment";
|
|
4
5
|
export declare const endAdornmentClassName = "dot-end-adornment";
|
|
5
6
|
export declare const placementClassName = "dot-";
|
|
6
|
-
export declare const StyledFormControl:
|
|
7
|
+
export declare const StyledFormControl: typeof FormControl;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { List } from '@mui/material';
|
|
1
2
|
export declare const rootClassName = "dot-list";
|
|
2
3
|
export declare const listItemRootClass = "dot-list-item";
|
|
3
4
|
export declare const nestedListClassName = "dot-nested-list";
|
|
4
5
|
export declare const nestedDrawerClassName = "dot-nested-drawer";
|
|
5
|
-
export declare const StyledList:
|
|
6
|
+
export declare const StyledList: typeof List;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const flyoutMenuClassName = "dot-flyout-menu";
|
|
3
2
|
export declare const rootClassName = "dot-menu";
|
|
4
3
|
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps, "direction"> & {
|
|
5
|
-
component?: import("react").ElementType<any
|
|
4
|
+
component?: import("react").ElementType<any> | undefined;
|
|
6
5
|
components?: {
|
|
7
|
-
Root?: import("react").ElementType<any
|
|
8
|
-
};
|
|
9
|
-
componentsProps?:
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
6
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
componentsProps?: import("@mui/base").PopperProps["slotProps"];
|
|
9
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
10
|
} & import("react").RefAttributes<HTMLDivElement>>, any, StyledPopperArgs, never>;
|
|
14
11
|
interface StyledPopperArgs {
|
|
15
12
|
$maxHeight?: number | string;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const rootClassName = "dot-popper";
|
|
3
2
|
export declare const arrowClassName = "MuiPopper-arrow";
|
|
4
3
|
export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps, "direction"> & {
|
|
5
|
-
component?: import("react").ElementType<any
|
|
4
|
+
component?: import("react").ElementType<any> | undefined;
|
|
6
5
|
components?: {
|
|
7
|
-
Root?: import("react").ElementType<any
|
|
8
|
-
};
|
|
9
|
-
componentsProps?:
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
6
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
componentsProps?: import("@mui/base").PopperProps["slotProps"];
|
|
9
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
13
10
|
} & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
14
11
|
export declare const StyledArrow: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const rootClassName = "dot-progress-button";
|
|
3
2
|
export declare const StyledProgressButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const rootClassName = "dot-time-picker";
|
|
3
2
|
export declare const containerClassName = "dot-time-picker-container";
|
|
3
|
+
export declare const timePickerPopperClassName = "dot-time-picker-popper";
|
|
4
4
|
export declare const StyledTimePickerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const StyledTimePicker: import("styled-components").StyledComponent<(<TDate>(props: import("@mui/x-date-pickers").TimePickerProps<TDate> & import("react").RefAttributes<HTMLDivElement>) => import("react").JSX.Element) & {
|
|
6
6
|
propTypes?: any;
|
|
7
7
|
}, any, {}, never>;
|
|
8
|
+
export declare const StyledTimePickerPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps, "direction"> & {
|
|
9
|
+
component?: import("react").ElementType<any> | undefined;
|
|
10
|
+
components?: {
|
|
11
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} | undefined;
|
|
13
|
+
componentsProps?: import("@mui/base").PopperProps["slotProps"];
|
|
14
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
+
} & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -124,13 +124,13 @@ export declare const v900 = "#0f052e";
|
|
|
124
124
|
export declare const selectedGray = "rgba(0, 0, 0, 0.12)";
|
|
125
125
|
export declare const lightSelectedGray = "rgba(0, 0, 0, 0.08)";
|
|
126
126
|
export declare const hoverGray = "rgba(0, 0, 0, 0.04)";
|
|
127
|
-
export declare const aiNormalDark
|
|
128
|
-
export declare const aiActiveDark
|
|
129
|
-
export declare const aiElevatedDark
|
|
130
|
-
export declare const aiLightDark
|
|
131
|
-
export declare const aiAutoCompleteBorderDark
|
|
132
|
-
export declare const aiNormalLight
|
|
133
|
-
export declare const aiActiveLight
|
|
134
|
-
export declare const aiElevatedLight
|
|
135
|
-
export declare const aiLightLight
|
|
136
|
-
export declare const aiAutoCompleteBorderLight
|
|
127
|
+
export declare const aiNormalDark = "linear-gradient(134deg, #f1a7dc 18.22%, #d7aaee 68.6%, #b6a3f5 118.99%)";
|
|
128
|
+
export declare const aiActiveDark = "linear-gradient(134deg, #f1a7dc 18.22%, #d7aaee 68.6%, #b6a3f5 118.99%)";
|
|
129
|
+
export declare const aiElevatedDark = "linear-gradient(134deg, #fce9f6 18.22%, #d7aaee 68.6%, #b6a3f5 118.99%)";
|
|
130
|
+
export declare const aiLightDark = "linear-gradient(134deg, #851465 18.22%, #5d1980 68.6%, #2c0f8a 118.99%)";
|
|
131
|
+
export declare const aiAutoCompleteBorderDark = "linear-gradient(134deg, #f1a7dc 18.22%, #d7aaee 68.6%, #eb7acb 118.99%)";
|
|
132
|
+
export declare const aiNormalLight = "linear-gradient(134deg, #dd22a8 18.22%, #9e2fd7 68.6%, #704aec 118.99%)";
|
|
133
|
+
export declare const aiActiveLight = "linear-gradient(134deg, #e44eb9 18.22%, #af54de 68.6%, #704aec 118.99%)";
|
|
134
|
+
export declare const aiElevatedLight = "linear-gradient(134deg, #b11b86 18.22%, #7c21ab 68.6%, #3a13b9 118.99%)";
|
|
135
|
+
export declare const aiLightLight = "linear-gradient(134deg, #fce9f6 18.22%, #f5e9fb 68.6%, #ede8fd 118.99%)";
|
|
136
|
+
export declare const aiAutoCompleteBorderLight = "linear-gradient(134deg, #dd22a8 18.22%, #9e2fd7 68.6%, #eb7acb 118.99%)";
|