@innovaccer/design-system 4.8.0 → 4.10.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 (33) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/css/dist/index.css +318 -114
  3. package/css/dist/index.css.map +1 -1
  4. package/css/src/components/chatInput.module.css +83 -0
  5. package/css/src/components/checkbox.module.css +1 -1
  6. package/css/src/components/grid.module.css +188 -97
  7. package/css/src/components/verticalNav.module.css +1 -0
  8. package/css/src/utils/utility.css +4 -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/paragraph/Paragraph.d.ts +1 -1
  13. package/dist/core/components/atoms/statusHint/StatusHint.d.ts +1 -1
  14. package/dist/core/components/atoms/subheading/Subheading.d.ts +1 -1
  15. package/dist/core/components/molecules/chat/Chat.d.ts +1 -0
  16. package/dist/core/components/molecules/chat/chatInput/ChatInput.d.ts +18 -0
  17. package/dist/core/components/molecules/chat/chatInput/index.d.ts +2 -0
  18. package/dist/core/components/organisms/grid/Grid.d.ts +4 -0
  19. package/dist/core/components/organisms/grid/GridCell.d.ts +2 -0
  20. package/dist/core/components/organisms/grid/rowUtility.d.ts +1 -0
  21. package/dist/core/components/organisms/table/Table.d.ts +3 -0
  22. package/dist/core/index.type.d.ts +1 -0
  23. package/dist/core/utils/navigationHelper.d.ts +1 -1
  24. package/dist/esm/index.js +1175 -831
  25. package/dist/figma/ChatInput.figma.d.ts +1 -0
  26. package/dist/gzip/index.js +1 -1
  27. package/dist/gzip/index.js.gz +0 -0
  28. package/dist/index.js +988 -659
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.umd.css +318 -114
  31. package/dist/index.umd.js +1 -1
  32. package/dist/types/tsconfig.type.tsbuildinfo +78 -29
  33. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { TextColor } from "../../../common.type";
4
4
  export declare type ParagraphAppearance = 'default' | 'white' | 'destructive' | 'subtle' | 'disabled';
5
5
  export interface ParagraphProps extends BaseProps, BaseHtmlProps<HTMLParagraphElement> {
6
6
  children: React.ReactNode;
7
- appearance: ParagraphAppearance;
7
+ appearance?: ParagraphAppearance;
8
8
  color?: TextColor;
9
9
  }
10
10
  export declare const Paragraph: React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLParagraphElement>>;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { BaseProps } from "../../../utils/types";
3
3
  import { MessageAppearance } from "../../../common.type";
4
4
  export interface StatusHintProps extends BaseProps {
5
- children: React.ReactText;
5
+ children: React.ReactText | React.ReactNode;
6
6
  appearance: MessageAppearance;
7
7
  truncateLabel?: boolean;
8
8
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
@@ -3,7 +3,7 @@ import { BaseHtmlProps, BaseProps } from "../../../utils/types";
3
3
  import { HeadingAppearance, TextColor } from "../../../common.type";
4
4
  export interface SubheadingProps extends BaseProps, BaseHtmlProps<HTMLHeadingElement> {
5
5
  children: React.ReactText;
6
- appearance: HeadingAppearance;
6
+ appearance?: HeadingAppearance;
7
7
  color?: TextColor;
8
8
  }
9
9
  export declare const Subheading: React.ForwardRefExoticComponent<SubheadingProps & React.RefAttributes<HTMLHeadingElement>>;
@@ -13,5 +13,6 @@ export declare const Chat: {
13
13
  (props: import("./chatBubble").ChatBubbleProps): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
+ ChatInput: React.FC<import("./chatInput/ChatInput").ChatInputProps>;
16
17
  };
17
18
  export default Chat;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { BaseProps } from "../../../../utils/types";
3
+ export interface ChatInputProps extends BaseProps {
4
+ placeholder?: string;
5
+ defaultValue?: string;
6
+ disabled?: boolean;
7
+ showStopButton?: boolean;
8
+ actionRenderer?: () => JSX.Element;
9
+ onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
10
+ onClick?: (e: React.MouseEvent<HTMLTextAreaElement>) => void;
11
+ onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
12
+ onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
13
+ onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
14
+ onSend?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, value?: string) => void;
15
+ onStopGenerating?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
16
+ }
17
+ declare const ChatInput: React.FC<ChatInputProps>;
18
+ export default ChatInput;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ChatInput";
2
+ export * from "./ChatInput";
@@ -64,11 +64,13 @@ export declare type ColumnSchema = {
64
64
  align?: Alignment;
65
65
  verticalAlign?: 'top' | 'center' | 'bottom';
66
66
  tooltip?: boolean;
67
+ highlightCell?: boolean;
67
68
  };
68
69
  export declare type RowData = Record<string, any> & {
69
70
  _selected?: boolean;
70
71
  disabled?: boolean;
71
72
  _expandNestedRow?: boolean;
73
+ _activated?: boolean;
72
74
  };
73
75
  export declare type GridSize = 'comfortable' | 'standard' | 'compressed' | 'tight';
74
76
  export declare type GridType = 'resource' | 'data';
@@ -133,6 +135,8 @@ export interface GridProps extends BaseProps {
133
135
  page: number;
134
136
  rowsCount: number;
135
137
  }) => Promise<Data>;
138
+ searchTerm?: string;
139
+ highlightRegex?: (searchTerm: string) => RegExp;
136
140
  }
137
141
  export interface GridState {
138
142
  init: boolean;
@@ -9,6 +9,7 @@ export interface CellData {
9
9
  firstName?: string;
10
10
  lastName?: string;
11
11
  statusAppearance?: StatusHintProps['appearance'];
12
+ highlightCell?: boolean;
12
13
  }
13
14
  export interface PartialCellProps {
14
15
  data: RowData;
@@ -20,6 +21,7 @@ export interface GridCellProps extends PartialCellProps {
20
21
  size?: GridSize;
21
22
  rowIndex?: number;
22
23
  colIndex?: number;
24
+ searchTerm?: string;
23
25
  }
24
26
  export declare const GridCell: {
25
27
  (props: GridCellProps): React.JSX.Element | null;
@@ -5,6 +5,7 @@ export declare function translateData(schema: ColumnSchema, data: RowData): {
5
5
  _selected?: boolean | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  _expandNestedRow?: boolean | undefined;
8
+ _activated?: boolean | undefined;
8
9
  };
9
10
  export declare const filterData: (schema: Schema | undefined, data: Data | undefined, filterList: FetchDataOptions['filterList']) => Data;
10
11
  export declare const sortData: (schema: Schema | undefined, data: Data | undefined, sortingList: FetchDataOptions['sortingList']) => Data;
@@ -54,6 +54,7 @@ interface SharedTableProps extends BaseProps {
54
54
  enableInfiniteScroll?: GridProps['enableInfiniteScroll'];
55
55
  infiniteScrollOptions?: GridProps['infiniteScrollOptions'];
56
56
  onScroll?: GridProps['onScroll'];
57
+ highlightRegex?: (searchTerm: string) => RegExp;
57
58
  }
58
59
  export declare type SyncTableProps = SharedTableProps & TableSyncProps;
59
60
  export declare type AsyncTableProps = SharedTableProps & AsyncProps;
@@ -156,6 +157,8 @@ export declare class Table extends React.Component<TableProps, TableState> {
156
157
  onClearSelection: () => void;
157
158
  resetClearSelection: () => void;
158
159
  onSelectAllRows: () => void;
160
+ selectAllRows: () => void;
161
+ clearAllSelection: () => void;
159
162
  render(): React.JSX.Element;
160
163
  }
161
164
  export default Table;
@@ -94,6 +94,7 @@ export { SelectProps } from "./components/organisms/select";
94
94
  export { MenuProps } from "./components/organisms/menu";
95
95
  export { KeyValuePairProps } from "./components/molecules/keyValuePair";
96
96
  export { ChatProps } from "./components/molecules/chat";
97
+ export { ChatInputProps } from "./components/molecules/chat/chatInput";
97
98
  export { ChatBubbleProps } from "./components/molecules/chat/chatBubble";
98
99
  export { DateSeparatorProps } from "./components/molecules/chat/dateSeparator";
99
100
  export { UnreadMessageProps } from "./components/molecules/chat/unreadMessage";
@@ -5,7 +5,7 @@ export declare type Menu = {
5
5
  link?: string;
6
6
  icon?: string;
7
7
  group?: string;
8
- count?: number;
8
+ count?: number | string;
9
9
  disabled?: boolean;
10
10
  subMenu?: Menu[];
11
11
  iconType?: IconType;