@digital-ai/dot-components 5.8.0 → 5.9.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": "5.8.0",
3
+ "version": "5.9.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -1,5 +1,5 @@
1
1
  export declare const dashboardCategoriesContainerClassName = "dashboard-categories-container";
2
- export declare const InlineMessage: import("styled-components").StyledComponent<({ ai, ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../../typography/Typography").TypographyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
2
+ export declare const InlineMessage: import("styled-components").StyledComponent<({ ai, ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, hasShimmer, 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
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>;
@@ -1,6 +1,6 @@
1
1
  import { MouseEvent, CSSProperties } from 'react';
2
2
  import { CommonProps } from '../CommonProps';
3
- export type AvatarSize = 'small' | 'medium' | 'large';
3
+ export type AvatarSize = 'xs' | 'small' | 'medium' | 'large';
4
4
  export type AvatarType = 'image' | 'text' | 'icon';
5
5
  export type AvatarVariant = 'circular' | 'square';
6
6
  export type AvatarColor = 'default' | 'inherit' | 'green' | 'blue' | 'orange' | 'purple' | 'yellow' | 'red' | 'darkGrey' | 'lightGrey' | 'transparent' | 'white';
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { CommonProps } from '../CommonProps';
3
+ export type ChatBubbleSeverity = 'default' | 'error' | 'info' | 'none' | 'success' | 'warning';
4
+ export type ChatBubbleOrientation = 'left' | 'right';
5
+ export interface ChatBubbleProps extends CommonProps {
6
+ /** The content on the bottom of the bubble **/
7
+ actions?: ReactNode;
8
+ /** The content of the chat bubble */
9
+ children: ReactNode;
10
+ /** The position of the non-rounded corner */
11
+ orientation: ChatBubbleOrientation;
12
+ /** The background style of the chat bubble */
13
+ severity?: ChatBubbleSeverity;
14
+ }
15
+ export declare const DotChatBubble: ({ actions, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, "data-pendoid": dataPendoId, orientation, severity, }: ChatBubbleProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ChatBubbleOrientation } from './ChatBubble';
2
+ export declare const rootClassName = "dot-chat-bubble";
3
+ export declare const actionsClassName = "dot-chat-bubble-actions";
4
+ export declare const contentClassName = "dot-chat-bubble-content";
5
+ interface StyledChatBubbleProps {
6
+ $orientation: ChatBubbleOrientation;
7
+ }
8
+ export declare const StyledChatBubble: import("styled-components").StyledComponent<"div", any, StyledChatBubbleProps, never>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { ChatBubbleProps, ChatBubbleOrientation, ChatBubbleSeverity, } from './ChatBubble';
2
+ export { DotChatBubble } from './ChatBubble';
@@ -1,5 +1,5 @@
1
1
  import { CommonProps } from '../CommonProps';
2
- export type IconFontSize = 'small' | 'medium' | 'large';
2
+ export type IconFontSize = 'xs' | 'small' | 'medium' | 'large';
3
3
  export interface IconProps extends CommonProps {
4
4
  /** If true, applies a gradient color to the icon */
5
5
  ai?: boolean;
@@ -58,6 +58,8 @@ export type { SearchProps } from './search';
58
58
  export type { ToggleSwitchProps, ToggleSwitchValue, ToggleSwitchOption, ToggleSwitchSingleValue, } from './toggle-switch';
59
59
  export type { ColorPickerProps, ColorResult, HsvaColor, SwatchPresetColor, } from './color-picker';
60
60
  export type { SelectProps, SelectOption } from './select';
61
+ export type { ChatBubbleOrientation, ChatBubbleProps, ChatBubbleSeverity, } from './chat-bubble';
62
+ export type { LoadingDotsProps } from './loading-dots';
61
63
  export { DotAccordion } from './accordion/Accordion';
62
64
  export { DotActionToolbar } from './action-toolbar/ActionToolbar';
63
65
  export { DotAlertBanner } from './alert-banner/AlertBanner';
@@ -149,3 +151,5 @@ export { DotToggleSwitch } from './toggle-switch';
149
151
  export { DotColorPicker } from './color-picker';
150
152
  export { useKeyPress } from '../hooks/useKeyPress';
151
153
  export { DotSelect } from './select';
154
+ export { DotChatBubble } from './chat-bubble';
155
+ export { DotLoadingDots } from './loading-dots';
@@ -0,0 +1,10 @@
1
+ import { CommonProps } from '../CommonProps';
2
+ export interface LoadingDotsProps extends CommonProps {
3
+ /** Number of dots to display (1..10) */
4
+ count?: number;
5
+ /** Size of the dots in pixels */
6
+ size?: number | string;
7
+ /** Animation speed multiplier (higher = faster) */
8
+ speed?: number;
9
+ }
10
+ export declare const DotLoadingDots: ({ ariaLabel, className, count, "data-pendoid": dataPendoId, "data-testid": dataTestId, size, speed, }: LoadingDotsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const rootClassName = "dot-loading-dots";
2
+ interface StyledLoadingDotsProps {
3
+ $count: number;
4
+ $duration: number;
5
+ $size: number | string;
6
+ }
7
+ export declare const StyledLoadingDots: import("styled-components").StyledComponent<"div", any, StyledLoadingDotsProps, never>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ export { DotLoadingDots } from './LoadingDots';
2
+ export type { LoadingDotsProps } from './LoadingDots';
@@ -0,0 +1,3 @@
1
+ export declare const AiGradientSvg: ({ id }: {
2
+ id: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,12 @@
1
1
  import { CommonProps } from '../CommonProps';
2
2
  export type progressColorOptions = 'inherit' | 'primary' | 'secondary';
3
3
  export type progressVariantOptions = 'determinate' | 'indeterminate';
4
+ export declare const AI_PROGRESS_GRADIENT_ID = "dot-progress-ai-gradient";
5
+ export declare const AI_PROGRESS_SIZE = 24;
6
+ export declare const AI_PROGRESS_THICKNESS = 2;
4
7
  export interface ProgressProps extends CommonProps {
8
+ /** Applies gradient color to the loading spinner */
9
+ ai?: boolean;
5
10
  /** color of the loading spinner border */
6
11
  color?: progressColorOptions;
7
12
  /** If true, it will display percentage label at the center of the circle */
@@ -17,4 +22,4 @@ export interface ProgressProps extends CommonProps {
17
22
  /** type of progress spinner displayed */
18
23
  variant?: progressVariantOptions;
19
24
  }
20
- export declare const DotProgress: ({ ariaLabel, color, className, "data-testid": dataTestId, hasPercentageLabel, size, thickness, tooltip, value, variant, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const DotProgress: ({ ai, ariaLabel, color, className, "data-testid": dataTestId, hasPercentageLabel, size, thickness, tooltip, value, variant, }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,6 @@
1
1
  export declare const rootClassName = "dot-progress";
2
- export declare const StyledProgress: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ interface StyledProgressProps {
3
+ $aiProgressGradientId?: string;
4
+ }
5
+ export declare const StyledProgress: import("styled-components").StyledComponent<"div", any, StyledProgressProps, never>;
6
+ export {};
@@ -10,6 +10,8 @@ export interface TypographyProps extends CommonProps {
10
10
  children: ReactNode;
11
11
  /** The component used for the root node. Either a string to use a HTML element or a component. */
12
12
  component?: ElementType;
13
+ /** If true, applies the shimmer styles. */
14
+ hasShimmer?: boolean;
13
15
  /** DEPRECATED: If true, the typography will not have a bottom margin set */
14
16
  noMarginBottom?: boolean;
15
17
  /** If true, the text will wrap and not be truncated */
@@ -17,4 +19,4 @@ export interface TypographyProps extends CommonProps {
17
19
  /** Applies the theme typography styles. */
18
20
  variant?: TypographyVariant;
19
21
  }
20
- export declare const DotTypography: ({ ai, ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const DotTypography: ({ ai, ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, hasShimmer, noMarginBottom, noWrap, variant, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;