@innovaccer/design-system 4.7.0 → 4.9.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 +86 -0
  2. package/css/dist/index.css +333 -158
  3. package/css/dist/index.css.map +1 -1
  4. package/css/src/ai-components/button.module.css +32 -47
  5. package/css/src/components/chatInput.module.css +83 -0
  6. package/css/src/components/checkbox.module.css +1 -1
  7. package/css/src/components/grid.module.css +175 -93
  8. package/css/src/components/select.module.css +0 -1
  9. package/css/src/components/verticalNav.module.css +1 -0
  10. package/dist/brotli/index.js +1 -1
  11. package/dist/brotli/index.js.br +0 -0
  12. package/dist/cjs/index.js +1 -1
  13. package/dist/core/ai-components/AIButton/index.d.ts +2 -1
  14. package/dist/core/components/atoms/paragraph/Paragraph.d.ts +1 -1
  15. package/dist/core/components/atoms/subheading/Subheading.d.ts +1 -1
  16. package/dist/core/components/molecules/chat/Chat.d.ts +1 -0
  17. package/dist/core/components/molecules/chat/chatInput/ChatInput.d.ts +18 -0
  18. package/dist/core/components/molecules/chat/chatInput/index.d.ts +2 -0
  19. package/dist/core/components/organisms/grid/Grid.d.ts +1 -0
  20. package/dist/core/components/organisms/grid/rowUtility.d.ts +1 -0
  21. package/dist/core/components/organisms/table/Table.d.ts +2 -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 +1022 -808
  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 +837 -636
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.umd.css +333 -158
  31. package/dist/index.umd.js +1 -1
  32. package/dist/types/tsconfig.type.tsbuildinfo +72 -25
  33. package/package.json +1 -1
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { TButtonAppearance, TButtonType, TBaseHtmlProps } from "../common.type";
3
3
  export interface AIButtonProps extends TBaseHtmlProps<HTMLButtonElement> {
4
4
  appearance?: TButtonAppearance;
5
+ withSparkle?: boolean;
5
6
  type?: TButtonType;
6
7
  disabled?: boolean;
7
8
  children?: string;
@@ -15,8 +16,8 @@ export interface AIButtonProps extends TBaseHtmlProps<HTMLButtonElement> {
15
16
  export declare const AIButton: {
16
17
  (props: AIButtonProps): React.JSX.Element;
17
18
  defaultProps: {
18
- appearance: string;
19
19
  type: string;
20
+ withSparkle: boolean;
20
21
  };
21
22
  };
22
23
  export default AIButton;
@@ -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>>;
@@ -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";
@@ -69,6 +69,7 @@ export declare type RowData = Record<string, any> & {
69
69
  _selected?: boolean;
70
70
  disabled?: boolean;
71
71
  _expandNestedRow?: boolean;
72
+ _activated?: boolean;
72
73
  };
73
74
  export declare type GridSize = 'comfortable' | 'standard' | 'compressed' | 'tight';
74
75
  export declare type GridType = 'resource' | 'data';
@@ -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;
@@ -156,6 +156,8 @@ export declare class Table extends React.Component<TableProps, TableState> {
156
156
  onClearSelection: () => void;
157
157
  resetClearSelection: () => void;
158
158
  onSelectAllRows: () => void;
159
+ selectAllRows: () => void;
160
+ clearAllSelection: () => void;
159
161
  render(): React.JSX.Element;
160
162
  }
161
163
  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;