@lifesg/react-design-system 2.2.0-canary.1 → 2.2.0-canary.2

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.
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ButtonProps } from "../button";
2
3
  export type ErrorDisplayType = "400" | "403" | "404" | "408" | "500" | "502" | "503" | "504" | "confirmation" | "inactivity" | "insufficient-credits" | "link-error" | "logout" | "warning" | "maintenance" | "no-item-found" | "payment-unsuccessful" | "transfer-unsuccessful" | "unsupported-browser" | "partially-supported-browser";
3
4
  export interface MaintenanceAdditionalAttributes {
4
5
  dateString: string;
@@ -6,16 +7,16 @@ export interface MaintenanceAdditionalAttributes {
6
7
  export interface ErrorDisplayAttributes {
7
8
  /** The custom image attributes */
8
9
  img?: React.ImgHTMLAttributes<HTMLImageElement> | undefined;
9
- title?: string | undefined;
10
+ title?: string | JSX.Element | undefined;
10
11
  description?: string | JSX.Element | undefined;
11
12
  /** The action button displayed at the bottom of the Error Display */
12
- actionButton?: React.ButtonHTMLAttributes<HTMLButtonElement> | undefined;
13
+ actionButton?: ButtonProps | undefined;
13
14
  /** Additional pre-specified props to control specific content */
14
15
  additionalProps?: MaintenanceAdditionalAttributes | undefined;
15
16
  /** Specifies if only the image is rendered */
16
17
  imageOnly?: boolean | undefined;
17
18
  }
18
- export interface ErrorDisplayProps extends React.HTMLAttributes<HTMLElement>, ErrorDisplayAttributes {
19
+ export interface ErrorDisplayProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, ErrorDisplayAttributes {
19
20
  type: ErrorDisplayType;
20
21
  "data-testid"?: string | undefined;
21
22
  }
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./calendar";
8
8
  export * from "./card";
9
9
  export * from "./checkbox";
10
10
  export * from "./color";
11
+ export * from "./data-table";
11
12
  export * from "./date-input";
12
13
  export * from "./date-range-input";
13
14
  export * from "./design-token";