@innovaccer/design-system 2.33.0 → 2.35.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.
@@ -21,3 +21,4 @@ export declare type OptionType = {
21
21
  isSelectedOption?: boolean;
22
22
  };
23
23
  export declare type TListboxSize = 'standard' | 'compressed' | 'tight';
24
+ export declare type TEmptyStateSize = 'standard' | 'compressed' | 'tight' | 'large' | 'small';
@@ -1,23 +1,43 @@
1
1
  import * as React from 'react';
2
2
  import { HeadingProps, TextProps } from "../../../index.type";
3
3
  import { BaseProps } from "../../../utils/types";
4
- declare type EmptyStateSize = 'large' | 'small';
4
+ import { TEmptyStateSize } from "../../../common.type";
5
5
  export interface EmptyStateProps extends BaseProps {
6
6
  imageSrc?: string;
7
- title: string;
8
- description: string;
9
- size: EmptyStateSize;
10
- children?: React.ReactNode;
7
+ title?: string;
8
+ description?: string;
11
9
  image?: React.ReactNode;
10
+ size?: TEmptyStateSize;
11
+ maxWidth?: number | string;
12
+ minWidth?: number | string;
13
+ width?: number | string;
14
+ children?: React.ReactNode;
12
15
  }
13
16
  export declare const imageHeight: {
14
17
  large: string;
15
18
  small: string;
19
+ standard: string;
20
+ compressed: string;
21
+ tight: string;
22
+ };
23
+ export declare const templateWidth: {
24
+ standard: string;
25
+ compressed: string;
26
+ tight: string;
27
+ large: string;
28
+ small: string;
16
29
  };
17
- export declare const HeadingSize: Record<EmptyStateSize, HeadingProps['size']>;
18
- export declare const textSize: Record<EmptyStateSize, TextProps['size']>;
30
+ export declare const HeadingSize: Record<TEmptyStateSize, HeadingProps['size']>;
31
+ export declare const textSize: Record<TEmptyStateSize, TextProps['size']>;
19
32
  export declare const EmptyState: {
20
33
  (props: EmptyStateProps): JSX.Element;
21
34
  displayName: string;
35
+ Title: (props: import("./EmptyStateTitle").EmptyDescriptionProps) => JSX.Element;
36
+ Description: (props: import("./EmptyStateDescription").EmptyDescriptionProps) => JSX.Element;
37
+ Image: (props: import("./EmptyStateImage").EmptyImageProps) => JSX.Element;
38
+ Actions: (props: import("./EmptyStateActions").EmptyActionProps) => JSX.Element;
39
+ defaultProps: {
40
+ size: string;
41
+ };
22
42
  };
23
43
  export default EmptyState;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface EmptyActionProps extends BaseProps {
4
+ children: React.ReactNode;
5
+ }
6
+ declare const EmptyStateActions: (props: EmptyActionProps) => JSX.Element;
7
+ export default EmptyStateActions;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { TEmptyStateSize } from "../../../common.type";
3
+ export declare type ContextProps = {
4
+ size?: TEmptyStateSize;
5
+ maxWidth?: number | string;
6
+ };
7
+ export declare const EmptyStateContext: React.Context<ContextProps>;
8
+ export default EmptyStateContext;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface EmptyDescriptionProps extends BaseProps {
4
+ children: React.ReactText;
5
+ }
6
+ declare const EmptyStateDescription: (props: EmptyDescriptionProps) => JSX.Element;
7
+ export default EmptyStateDescription;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface EmptyImageProps extends BaseProps, React.ImgHTMLAttributes<HTMLImageElement> {
4
+ children?: React.ReactNode;
5
+ src?: string;
6
+ alt?: string;
7
+ height?: string | number;
8
+ minHeight?: string | number;
9
+ maxHeight?: string | number;
10
+ }
11
+ export declare const imageHeight: {
12
+ standard: string;
13
+ compressed: string;
14
+ tight: string;
15
+ large: string;
16
+ small: string;
17
+ };
18
+ declare const EmptyStateImage: (props: EmptyImageProps) => JSX.Element;
19
+ export default EmptyStateImage;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface EmptyDescriptionProps extends BaseProps {
4
+ children: React.ReactText;
5
+ }
6
+ declare const EmptyStateTitle: (props: EmptyDescriptionProps) => JSX.Element;
7
+ export default EmptyStateTitle;
@@ -18,6 +18,8 @@ export interface ComboboxProps extends BaseProps {
18
18
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
19
19
  onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
20
20
  onClear?: (event: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
21
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
22
+ onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
21
23
  icon?: string;
22
24
  iconType?: IconType;
23
25
  size?: ComboboxInputSize;
@@ -10,6 +10,8 @@ interface ComboboxTriggerProps {
10
10
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
11
11
  onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
12
12
  onClear?: (event: React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEvent<HTMLElement>) => void;
13
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
14
+ onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
13
15
  icon?: string;
14
16
  iconType?: IconType;
15
17
  size?: ComboboxInputSize;
@@ -19,7 +19,8 @@ export interface MultiSelectTriggerProps extends BaseProps {
19
19
  defaultValue: OptionType[];
20
20
  autoFocus?: boolean;
21
21
  onChange?: (chips: OptionType[]) => void;
22
- onKeyDown?: (e: React.KeyboardEvent) => void;
22
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
23
+ onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
23
24
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
24
25
  onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
25
26
  onInputChange?: (e?: React.ChangeEvent<HTMLInputElement>) => void;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { InputProps } from "../../../index.type";
3
- export interface SelectInputProps extends InputProps {
3
+ export interface SelectInputProps extends Omit<InputProps, 'onChange'> {
4
4
  onClear?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
5
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ onChange?: (value?: string) => void;
6
6
  }
7
7
  export declare const SearchInput: (props: SelectInputProps) => JSX.Element;
8
8
  export default SearchInput;
@@ -11,7 +11,7 @@ export interface SelectProps extends BaseProps {
11
11
  multiSelect?: boolean;
12
12
  onSelect: (option?: OptionType | OptionType[]) => void;
13
13
  children?: React.ReactNode;
14
- width?: number;
14
+ width?: number | string;
15
15
  popoverWidth?: number;
16
16
  maxHeight?: number;
17
17
  minHeight?: number;
@@ -10,7 +10,7 @@ export declare type ContextProps = {
10
10
  onOptionClick?: (option: OptionType | OptionType[]) => void;
11
11
  maxHeight?: number;
12
12
  minHeight?: number;
13
- width?: number;
13
+ width?: number | string;
14
14
  withSearch?: boolean;
15
15
  setWithSearch?: React.Dispatch<React.SetStateAction<boolean>>;
16
16
  multiSelect?: boolean;