@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.
- package/CHANGELOG.md +90 -0
- package/css/dist/index.css +318 -114
- package/css/dist/index.css.map +1 -1
- package/css/src/components/chatInput.module.css +83 -0
- package/css/src/components/checkbox.module.css +1 -1
- package/css/src/components/grid.module.css +188 -97
- package/css/src/components/verticalNav.module.css +1 -0
- package/css/src/utils/utility.css +4 -0
- package/dist/brotli/index.js +1 -1
- package/dist/brotli/index.js.br +0 -0
- package/dist/cjs/index.js +1 -1
- package/dist/core/components/atoms/paragraph/Paragraph.d.ts +1 -1
- package/dist/core/components/atoms/statusHint/StatusHint.d.ts +1 -1
- package/dist/core/components/atoms/subheading/Subheading.d.ts +1 -1
- package/dist/core/components/molecules/chat/Chat.d.ts +1 -0
- package/dist/core/components/molecules/chat/chatInput/ChatInput.d.ts +18 -0
- package/dist/core/components/molecules/chat/chatInput/index.d.ts +2 -0
- package/dist/core/components/organisms/grid/Grid.d.ts +4 -0
- package/dist/core/components/organisms/grid/GridCell.d.ts +2 -0
- package/dist/core/components/organisms/grid/rowUtility.d.ts +1 -0
- package/dist/core/components/organisms/table/Table.d.ts +3 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/core/utils/navigationHelper.d.ts +1 -1
- package/dist/esm/index.js +1175 -831
- package/dist/figma/ChatInput.figma.d.ts +1 -0
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +988 -659
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +318 -114
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +78 -29
- 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
|
|
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
|
|
6
|
+
appearance?: HeadingAppearance;
|
|
7
7
|
color?: TextColor;
|
|
8
8
|
}
|
|
9
9
|
export declare const Subheading: React.ForwardRefExoticComponent<SubheadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -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;
|
|
@@ -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";
|