@innovaccer/design-system 4.1.0 → 4.3.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +102 -1
  2. package/css/dist/index.css +316 -196
  3. package/css/dist/index.css.map +1 -1
  4. package/css/gulpfile.js +9 -0
  5. package/css/src/components/avatarSelection.module.css +3 -3
  6. package/css/src/components/chatBubble.module.css +53 -0
  7. package/css/src/components/chatSeparator.module.css +23 -0
  8. package/css/src/components/meter.module.css +39 -0
  9. package/dist/brotli/index.js +1 -1
  10. package/dist/brotli/index.js.br +0 -0
  11. package/dist/cjs/index.js +1 -1
  12. package/dist/core/components/atoms/avatarGroup/AvatarGroup.d.ts +2 -0
  13. package/dist/core/components/atoms/avatarGroup/AvatarPopperBody.d.ts +1 -0
  14. package/dist/core/components/atoms/avatarSelection/AvatarSelection.d.ts +2 -0
  15. package/dist/core/components/atoms/meter/Meter.d.ts +64 -0
  16. package/dist/core/components/atoms/meter/Step.d.ts +21 -0
  17. package/dist/core/components/atoms/meter/index.d.ts +2 -0
  18. package/dist/core/components/atoms/meter/useMeterValues.d.ts +9 -0
  19. package/dist/core/components/molecules/chat/Chat.d.ts +17 -0
  20. package/dist/core/components/molecules/chat/chatBubble/ChatBubble.d.ts +16 -0
  21. package/dist/core/components/molecules/chat/chatBubble/IncomingBubble.d.ts +26 -0
  22. package/dist/core/components/molecules/chat/chatBubble/OutgoingBubble.d.ts +17 -0
  23. package/dist/core/components/molecules/chat/chatBubble/index.d.ts +2 -0
  24. package/dist/core/components/molecules/chat/dateSeparator/DateSeparator.d.ts +7 -0
  25. package/dist/core/components/molecules/chat/dateSeparator/index.d.ts +2 -0
  26. package/dist/core/components/molecules/chat/index.d.ts +2 -0
  27. package/dist/core/components/molecules/chat/newMessage/NewMessage.d.ts +7 -0
  28. package/dist/core/components/molecules/chat/newMessage/index.d.ts +2 -0
  29. package/dist/core/components/molecules/chat/typingIndicator/TypingIndicator.d.ts +7 -0
  30. package/dist/core/components/molecules/chat/typingIndicator/index.d.ts +2 -0
  31. package/dist/core/components/molecules/chat/unreadMessage/UnreadMessage.d.ts +7 -0
  32. package/dist/core/components/molecules/chat/unreadMessage/index.d.ts +2 -0
  33. package/dist/core/components/organisms/grid/Grid.d.ts +1 -0
  34. package/dist/core/components/organisms/grid/rowUtility.d.ts +1 -0
  35. package/dist/core/index.d.ts +2 -0
  36. package/dist/core/index.type.d.ts +7 -0
  37. package/dist/esm/index.js +1222 -745
  38. package/dist/figma/AvatarGroup.figma.d.ts +1 -0
  39. package/dist/figma/AvatarSelection.figma.d.ts +1 -0
  40. package/dist/figma/Calendar.figma.d.ts +1 -0
  41. package/dist/figma/ChatBubble.figma.d.ts +1 -0
  42. package/dist/figma/ChoiceList.figma.d.ts +1 -0
  43. package/dist/figma/Combobox.figma.d.ts +1 -0
  44. package/dist/figma/DatePicker.figma.d.ts +1 -0
  45. package/dist/figma/DateRangePicker.figma.d.ts +1 -0
  46. package/dist/figma/DateSeparator.figma.d.ts +1 -0
  47. package/dist/figma/HorizontalNav.figma.d.ts +1 -0
  48. package/dist/figma/InlineMessage.figma.d.ts +1 -0
  49. package/dist/figma/Listbox.figma.d.ts +1 -0
  50. package/dist/figma/Menu.figma.d.ts +1 -0
  51. package/dist/figma/Meter.figma.d.ts +1 -0
  52. package/dist/figma/NewMessage.figma.d.ts +1 -0
  53. package/dist/figma/PageHeader.figma.d.ts +1 -0
  54. package/dist/figma/Select.figma.d.ts +1 -0
  55. package/dist/figma/Table.figma.d.ts +1 -0
  56. package/dist/figma/TimePicker.figma.d.ts +1 -0
  57. package/dist/figma/TypingIndicator.figma.d.ts +1 -0
  58. package/dist/figma/UnreadMessage.figma.d.ts +1 -0
  59. package/dist/figma/VerticalNav.figma.d.ts +1 -0
  60. package/dist/gzip/index.js +1 -1
  61. package/dist/gzip/index.js.gz +0 -0
  62. package/dist/index.js +1082 -620
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.umd.css +123 -3
  65. package/dist/index.umd.js +1 -1
  66. package/dist/types/tsconfig.type.tsbuildinfo +641 -26
  67. package/package.json +1 -1
@@ -10,6 +10,8 @@ export interface AvatarData extends Record<string, any> {
10
10
  image?: React.ReactNode;
11
11
  disabled?: boolean;
12
12
  tooltipSuffix?: string;
13
+ status?: React.ReactNode;
14
+ presence?: AvatarProps['presence'];
13
15
  }
14
16
  interface AvatarPopoverProps {
15
17
  popperRenderer?: (names: AvatarData[]) => JSX.Element;
@@ -10,6 +10,7 @@ interface AvatarPopperProps {
10
10
  withSearch?: boolean;
11
11
  searchPlaceholder?: string;
12
12
  searchComparator?: (searchValue: string, avatarData: AvatarData) => boolean;
13
+ size?: AvatarData['size'];
13
14
  }
14
15
  declare const AvatarPopperBody: (props: AvatarPopperProps) => React.JSX.Element;
15
16
  export default AvatarPopperBody;
@@ -11,6 +11,8 @@ export interface AvatarData extends Record<string, any> {
11
11
  selected?: boolean;
12
12
  disabled?: boolean;
13
13
  tooltipSuffix?: string;
14
+ status?: React.ReactNode;
15
+ presence?: AvatarProps['presence'];
14
16
  }
15
17
  export interface AvatarSelectionProps extends BaseProps {
16
18
  list: AvatarData[];
@@ -0,0 +1,64 @@
1
+ import * as React from 'react';
2
+ import { StepColor } from "./Step";
3
+ import { BaseProps } from "../../../utils/types";
4
+ export declare type MeterLabelSize = 'small' | 'regular' | 'large';
5
+ export declare type MeterSize = 'small' | 'regular' | 'large';
6
+ export declare type RenderLabelProps = {
7
+ filledSteps: number;
8
+ value: number;
9
+ min: number;
10
+ max: number;
11
+ stepCount: number;
12
+ percentage: number;
13
+ };
14
+ export declare type FillStepProps = {
15
+ value: number;
16
+ stepCount: number;
17
+ min: number;
18
+ max: number;
19
+ };
20
+ export declare type MeterValueProps = {
21
+ value: number;
22
+ min: number;
23
+ max: number;
24
+ stepCount: number;
25
+ getFilledSteps?: (props: FillStepProps) => number;
26
+ };
27
+ export interface MeterProps extends BaseProps, React.HTMLAttributes<HTMLDivElement> {
28
+ value: number;
29
+ min: number;
30
+ max: number;
31
+ stepCount: number;
32
+ emptyColor?: string;
33
+ fillColor?: StepColor | StepColor[];
34
+ meterSize: MeterSize;
35
+ labelSize?: MeterLabelSize;
36
+ renderLabel?: (props: RenderLabelProps) => React.ReactText;
37
+ showLabel?: boolean;
38
+ getFilledSteps?: (props: FillStepProps) => number;
39
+ ariaLabel?: string;
40
+ }
41
+ export declare const Meter: {
42
+ (props: MeterProps): React.JSX.Element;
43
+ displayName: string;
44
+ defaultProps: {
45
+ value: number;
46
+ min: number;
47
+ max: number;
48
+ stepCount: number;
49
+ fillColor: string;
50
+ meterSize: string;
51
+ type: string;
52
+ showLabel: boolean;
53
+ emptyColor: string;
54
+ };
55
+ useMeterValues: (props: MeterValueProps) => {
56
+ filledSteps: number;
57
+ percentage: number;
58
+ value: number;
59
+ min: number;
60
+ max: number;
61
+ stepCount: number;
62
+ };
63
+ };
64
+ export default Meter;
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export declare type StepSize = 'small' | 'regular' | 'large';
4
+ export declare type StepType = 'filled' | 'empty';
5
+ export declare type StepColor = 'info' | 'success' | 'warning' | 'alert';
6
+ export interface StepProps extends BaseProps {
7
+ stepSize: StepSize;
8
+ type: StepType;
9
+ emptyColor?: string;
10
+ fillColor?: StepColor;
11
+ }
12
+ export declare const Step: {
13
+ (props: StepProps): React.JSX.Element;
14
+ displayName: string;
15
+ defaultProps: {
16
+ stepSize: string;
17
+ type: string;
18
+ emptyColor: string;
19
+ };
20
+ };
21
+ export default Step;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Meter";
2
+ export * from "./Meter";
@@ -0,0 +1,9 @@
1
+ import { MeterValueProps } from "./Meter";
2
+ export declare const useMeterValues: (props: MeterValueProps) => {
3
+ filledSteps: number;
4
+ percentage: number;
5
+ value: number;
6
+ min: number;
7
+ max: number;
8
+ stepCount: number;
9
+ };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../utils/types";
3
+ export interface ChatProps extends BaseProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const Chat: {
7
+ (props: ChatProps): React.JSX.Element;
8
+ DateSeparator: React.FC<import("./dateSeparator").DateSeparatorProps>;
9
+ UnreadMessage: React.FC<import("./unreadMessage").UnreadMessageProps>;
10
+ NewMessage: React.FC<import("./newMessage").NewMessageProps>;
11
+ TypingIndicator: React.FC<import("./typingIndicator").TypingIndicatorProps>;
12
+ ChatBubble: {
13
+ (props: import("./chatBubble").ChatBubbleProps): React.JSX.Element;
14
+ displayName: string;
15
+ };
16
+ };
17
+ export default Chat;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { IncomingOptionProps } from "./IncomingBubble";
3
+ import { OutgoingOptionProps } from "./OutgoingBubble";
4
+ import { BaseProps } from "../../../../utils/types";
5
+ export declare type ChatBubbleType = 'incoming' | 'outgoing';
6
+ export interface ChatBubbleProps extends BaseProps {
7
+ type: ChatBubbleType;
8
+ incomingOptions?: IncomingOptionProps;
9
+ outgoingOptions?: OutgoingOptionProps;
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare const ChatBubble: {
13
+ (props: ChatBubbleProps): React.JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export default ChatBubble;
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { AccentAppearance } from "../../../../common.type";
3
+ import { BaseProps } from "../../../../utils/types";
4
+ export interface ChatAvatarProps {
5
+ appearance?: AccentAppearance;
6
+ firstName?: string;
7
+ lastName?: string;
8
+ role?: string;
9
+ tabIndex?: number;
10
+ icon?: React.ReactNode;
11
+ image?: React.ReactNode;
12
+ }
13
+ export interface IncomingOptionProps extends BaseProps {
14
+ children?: React.ReactNode;
15
+ time?: string | React.ReactText;
16
+ metaData?: string;
17
+ actionBar?: () => JSX.Element;
18
+ urgentMessage?: () => JSX.Element;
19
+ avatarData?: ChatAvatarProps;
20
+ showAvatar?: boolean;
21
+ }
22
+ export declare const IncomingBubble: {
23
+ (props: IncomingOptionProps): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ export default IncomingBubble;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface OutgoingOptionProps extends BaseProps {
4
+ metaData?: string;
5
+ status?: boolean;
6
+ failed?: boolean;
7
+ children?: React.ReactNode;
8
+ time?: string | React.ReactText;
9
+ actionBar?: () => JSX.Element;
10
+ urgentMessage?: () => JSX.Element;
11
+ failedMessage?: () => JSX.Element;
12
+ }
13
+ export declare const OutgoingBubble: {
14
+ (props: OutgoingOptionProps): React.JSX.Element;
15
+ displayName: string;
16
+ };
17
+ export default OutgoingBubble;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ChatBubble";
2
+ export * from "./ChatBubble";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface DateSeparatorProps extends BaseProps {
4
+ date: React.ReactText;
5
+ }
6
+ declare const DateSeparator: React.FC<DateSeparatorProps>;
7
+ export default DateSeparator;
@@ -0,0 +1,2 @@
1
+ export { default } from "./DateSeparator";
2
+ export * from "./DateSeparator";
@@ -0,0 +1,2 @@
1
+ export { default } from "./Chat";
2
+ export * from "./Chat";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface NewMessageProps extends BaseProps {
4
+ text: string;
5
+ }
6
+ declare const NewMessage: React.FC<NewMessageProps>;
7
+ export default NewMessage;
@@ -0,0 +1,2 @@
1
+ export { default } from "./NewMessage";
2
+ export * from "./NewMessage";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface TypingIndicatorProps extends BaseProps {
4
+ text: string;
5
+ }
6
+ export declare const TypingIndicator: React.FC<TypingIndicatorProps>;
7
+ export default TypingIndicator;
@@ -0,0 +1,2 @@
1
+ export { default } from "./TypingIndicator";
2
+ export * from "./TypingIndicator";
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface UnreadMessageProps extends BaseProps {
4
+ text: string;
5
+ }
6
+ declare const UnreadMessage: React.FC<UnreadMessageProps>;
7
+ export default UnreadMessage;
@@ -0,0 +1,2 @@
1
+ export { default } from "./UnreadMessage";
2
+ export * from "./UnreadMessage";
@@ -67,6 +67,7 @@ export declare type ColumnSchema = {
67
67
  export declare type RowData = Record<string, any> & {
68
68
  _selected?: boolean;
69
69
  disabled?: boolean;
70
+ _expandNestedRow?: boolean;
70
71
  };
71
72
  export declare type GridSize = 'comfortable' | 'standard' | 'compressed' | 'tight';
72
73
  export declare type GridType = 'resource' | 'data';
@@ -4,6 +4,7 @@ export declare function translateData(schema: ColumnSchema, data: RowData): {
4
4
  [x: string]: any;
5
5
  _selected?: boolean | undefined;
6
6
  disabled?: boolean | undefined;
7
+ _expandNestedRow?: boolean | undefined;
7
8
  };
8
9
  export declare const filterData: (schema: Schema | undefined, data: Data | undefined, filterList: FetchDataOptions['filterList']) => Data;
9
10
  export declare const sortData: (schema: Schema | undefined, data: Data | undefined, sortingList: FetchDataOptions['sortingList']) => Data;
@@ -93,6 +93,8 @@ export { Combobox } from "./components/organisms/combobox";
93
93
  export { Select } from "./components/organisms/select";
94
94
  export { Menu } from "./components/organisms/menu";
95
95
  export { KeyValuePair } from "./components/molecules/keyValuePair";
96
+ export { Chat } from "./components/molecules/chat";
97
+ export { Meter } from "./components/atoms/meter";
96
98
  export { AIButton } from "./ai-components/AIButton";
97
99
  export { SaraSparkle } from "./ai-components/SaraSparkle";
98
100
  export { Sara } from "./ai-components/Sara";
@@ -93,6 +93,13 @@ export { ComboboxProps } from "./components/organisms/combobox";
93
93
  export { SelectProps } from "./components/organisms/select";
94
94
  export { MenuProps } from "./components/organisms/menu";
95
95
  export { KeyValuePairProps } from "./components/molecules/keyValuePair";
96
+ export { ChatProps } from "./components/molecules/chat";
97
+ export { ChatBubbleProps } from "./components/molecules/chat/chatBubble";
98
+ export { DateSeparatorProps } from "./components/molecules/chat/dateSeparator";
99
+ export { UnreadMessageProps } from "./components/molecules/chat/unreadMessage";
100
+ export { NewMessageProps } from "./components/molecules/chat/newMessage";
101
+ export { TypingIndicatorProps } from "./components/molecules/chat/typingIndicator";
102
+ export { MeterProps } from "./components/atoms/meter";
96
103
  export { SaraSparkleProps } from "./ai-components/SaraSparkle";
97
104
  export { AIButtonProps } from "./ai-components/AIButton";
98
105
  export { SaraProps } from "./ai-components/Sara";