@digital-ai/dot-components 3.0.0 → 3.1.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": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -40,6 +40,7 @@
40
40
  "author": "Matt Haff",
41
41
  "dependencies": {
42
42
  "@digital-ai/dot-icons": "latest",
43
+ "@digital-ai/dot-illustrations": "latest",
43
44
  "@emotion/react": "^11.10.4",
44
45
  "@emotion/styled": "^11.10.4",
45
46
  "@mui/material": "^5.2.5",
@@ -3,6 +3,8 @@ import { CommonProps } from '../CommonProps';
3
3
  export interface EmptyStateProps extends CommonProps {
4
4
  /** primary button properties */
5
5
  buttonProps?: ButtonProps;
6
+ /** id of illustration to use, overrides imageSrc **/
7
+ illustrationId?: string;
6
8
  /** alt text of image */
7
9
  imageAltText?: string;
8
10
  /** location of image */
@@ -12,4 +14,4 @@ export interface EmptyStateProps extends CommonProps {
12
14
  /** title text displayed */
13
15
  title: string;
14
16
  }
15
- export declare const DotEmptyState: ({ ariaLabel, buttonProps, className, "data-testid": dataTestId, imageAltText, imageSrc, subtitle, title, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const DotEmptyState: ({ ariaLabel, buttonProps, className, "data-testid": dataTestId, illustrationId, imageAltText, imageSrc, subtitle, title, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { CommonProps } from '../CommonProps';
2
+ import { TooltipPlacement } from '../tooltip/Tooltip';
3
+ import { ThemeOptions } from '../../theme-provider/ThemeProvider';
4
+ export interface IllustrationProps extends CommonProps {
5
+ /** Alternative text for the illustration image **/
6
+ alt?: string;
7
+ /** The ID of the illustration to display on the img */
8
+ illustrationId: string;
9
+ /** The theme of the illustration (dark or light) **/
10
+ theme?: ThemeOptions;
11
+ /** Title text for the illustration image **/
12
+ title?: string;
13
+ /** Tooltip text displayed on hover */
14
+ tooltip?: string;
15
+ /** Placement for tooltip **/
16
+ tooltipPlacement?: TooltipPlacement;
17
+ }
18
+ export declare const DotIllustration: ({ alt, ariaLabel, ariaRole, className, "data-testid": dataTestId, illustrationId, theme, title, tooltip, tooltipPlacement, }: IllustrationProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import '@digital-ai/dot-illustrations';
2
+ export declare const rootClassName = "dot-illustration";
3
+ export declare const StyledIllustration: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -77,6 +77,7 @@ export { DotForm } from './form/Form';
77
77
  export { DotFormGroup } from './form-group/FormGroup';
78
78
  export { DotDynamicForm } from './dynamic-form/DynamicForm';
79
79
  export { DotIcon } from './icon/Icon';
80
+ export { DotIllustration } from './illustration/Illustration';
80
81
  export { DotInlineEdit } from './inline-edit';
81
82
  export { DotInputText } from './input-form-fields/InputText';
82
83
  export { DotInputSelect } from './input-form-fields/InputSelect';