@digital-ai/dot-components 2.20.1 → 2.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.20.1",
3
+ "version": "2.21.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { MouseEvent as ReactMouseEvent } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  import { LinkUnderline } from '../link/Link';
4
4
  export type BreadcrumbItem = {
@@ -8,7 +8,7 @@ export type BreadcrumbItem = {
8
8
  characterLimit?: number;
9
9
  /** link the breadcrumb goes to */
10
10
  href?: string;
11
- onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
11
+ onClick?: (event: ReactMouseEvent<HTMLAnchorElement>) => void;
12
12
  /** text displayed */
13
13
  text: string;
14
14
  /** determines if and when the underline will be shown */
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  export interface CardProps extends CommonProps {
4
- /** The content for the Card.*/
5
4
  children: ReactNode;
6
5
  }
7
6
  export declare const DotCard: ({ ariaLabel, children, className, "data-testid": dataTestId, }: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const rootClassName = "dot-card";
2
+ export declare const StyledCard: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").CardTypeMap<{}, "div">>, any, {}, never>;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const rootClassName = "dot-date-picker";
3
+ export declare const popperClassName = "dot-date-picker-popper";
3
4
  export declare const containerClassName = "dot-date-picker-container";
4
5
  export declare const rectanglePickersDayClassName = "dot-rectangle-pickers-day";
5
6
  export declare const StyledDatePickerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -28,7 +28,9 @@ export interface InputProps extends CommonProps {
28
28
  /** The label content. */
29
29
  label?: string;
30
30
  max?: number | string;
31
+ maxLength?: number;
31
32
  min?: number | string;
33
+ minLength?: number;
32
34
  /** The name of input element */
33
35
  name: string;
34
36
  /** A function that should be executed when the input loses focus */
@@ -31,4 +31,4 @@ export interface EndIconProps {
31
31
  success?: boolean;
32
32
  warning?: boolean;
33
33
  }
34
- export declare const DotInputText: ({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, endText, id, inputRef, label, max, maxRows, min, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const DotInputText: ({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, endText, id, inputRef, label, max, maxLength, maxRows, min, minLength, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { lightTheme as Theme } from '../../../lib/theme-provider/ThemeProvider';
2
- export declare const formHelperTextRootStyles: (theme: typeof Theme) => import("styled-components").FlattenSimpleInterpolation;
1
+ export declare const formHelperTextRootStyles: (theme: any) => import("styled-components").FlattenSimpleInterpolation;
3
2
  export declare const adornmentIconStyles: () => import("styled-components").FlattenSimpleInterpolation;
4
- export declare const pickerInputStyles: (theme: typeof Theme) => import("styled-components").FlattenSimpleInterpolation;
5
- export declare const readOnlyStyles: (theme: typeof Theme) => import("styled-components").FlattenSimpleInterpolation;
3
+ export declare const pickerInputStyles: (theme: any) => import("styled-components").FlattenSimpleInterpolation;
4
+ export declare const readOnlyStyles: (theme: any) => import("styled-components").FlattenSimpleInterpolation;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import { ComponentType } from 'react';
2
2
  export declare const flyoutListItemClassName = "dot-flyout-list-item";
3
3
  export declare const flyoutItemLinkClassName = "dot-flyout-item-link";
4
4
  export declare const listItemLinkClassName = "dot-list-item-link";
5
- export declare const StyledListItem: import("react").ComponentType<any> | keyof JSX.IntrinsicElements;
6
- export declare const StyledListItemButton: import("react").ComponentType<any> | keyof JSX.IntrinsicElements;
5
+ export declare const StyledListItem: ComponentType<any> | keyof JSX.IntrinsicElements;
6
+ export declare const StyledListItemButton: ComponentType<any> | keyof JSX.IntrinsicElements;
@@ -1,6 +1,9 @@
1
1
  export declare const rootClassName = "dot-stepper";
2
2
  export declare const stepListClassName = "dot-stepper-list";
3
3
  export declare const contentClassName = "dot-stepper-content";
4
+ interface StyledStepActionsContainerProps {
5
+ displayCancelButton?: boolean;
6
+ }
4
7
  export declare const StyledStepper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
8
  interface StyledScrollbarContainerProps {
6
9
  offset?: number;
@@ -8,8 +11,5 @@ interface StyledScrollbarContainerProps {
8
11
  export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, StyledScrollbarContainerProps, never>;
9
12
  export declare const StepContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
13
  export declare const StepDescription: 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>;
11
- interface StyledStepActionsContainerProps {
12
- displayCancelButton?: boolean;
13
- }
14
14
  export declare const StepActionsContainer: import("styled-components").StyledComponent<"div", any, StyledStepActionsContainerProps, never>;
15
15
  export {};
@@ -6,7 +6,7 @@ export type SwitchLabelPlacement = 'bottom' | 'end' | 'start' | 'top';
6
6
  export interface SwitchProps extends CommonProps {
7
7
  /** determines the default state of the switch */
8
8
  checked?: boolean;
9
- /** color options available 'default', 'primary', 'secondary' */
9
+ /** DEPRECATED: this will be removed in an upcoming release */
10
10
  color?: SwitchColor;
11
11
  /** if true makes the switch disabled */
12
12
  disabled?: boolean;
@@ -2,6 +2,12 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
3
  import { TypographyVariant } from '../typography/Typography';
4
4
  export type TextAlignment = 'center' | 'inherit' | 'justify' | 'left' | 'right';
5
+ export interface CustomCellDataWrapper {
6
+ avatarIcon?: string;
7
+ avatarImageSrc?: string;
8
+ mainText: string;
9
+ secondaryText?: string;
10
+ }
5
11
  export interface CellProps extends CommonProps {
6
12
  align?: TextAlignment;
7
13
  cellKey?: string;
@@ -1,7 +1,7 @@
1
1
  export type { DotColumnHeader, TableRowProps } from './utils/interfaces';
2
2
  export type { TableActionProps } from './TableAction';
3
3
  export type { TableActionsProps } from './TableActions';
4
- export type { TextAlignment } from './TableCell';
4
+ export type { CustomCellDataWrapper, TextAlignment } from './TableCell';
5
5
  export type { TableDataWithPagination } from './TableDataWithPagination';
6
6
  export type { SortDirection } from './TableHeaderCell';
7
7
  export type { RowsPerPageOption } from './TablePagination';
@@ -15,7 +15,7 @@ export interface TabProps extends CommonProps {
15
15
  export interface TabsProps extends CommonProps {
16
16
  /** Center the tabs */
17
17
  centered?: boolean;
18
- /** The color of the tabs */
18
+ /** DEPRECATED: this will be removed in an upcoming release */
19
19
  color?: TabsColor;
20
20
  /** The value of the initially selected tab */
21
21
  initialValue?: any;
@@ -35,9 +35,11 @@ export declare const n400 = "#667385";
35
35
  export declare const n500 = "#4b5a6f";
36
36
  export declare const n600 = "#445267";
37
37
  export declare const n700 = "#3b485c";
38
+ export declare const n700_70 = "rgba(59, 72, 92, 0.7)";
38
39
  export declare const n700_90 = "rgba(59, 72, 92, 0.9)";
39
40
  export declare const n800 = "#333f52";
40
41
  export declare const n900 = "#232e40";
42
+ export declare const n900_20 = "rgba(35, 46, 64, 0.2)";
41
43
  export declare const n900_70 = "rgba(35, 46, 64, 0.7)";
42
44
  export declare const nA100 = "#88b1ff";
43
45
  export declare const nA200 = "#5590ff";
@@ -26,6 +26,10 @@ export interface BreakpointOptions {
26
26
  };
27
27
  }
28
28
  export interface FigmaTheme {
29
+ appToolbar: {
30
+ background: string;
31
+ btnHover: string;
32
+ };
29
33
  background: {
30
34
  level0: {
31
35
  bckgGray: string;