@indigoai/indigo-design-system 0.10.22 → 0.10.24

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.
@@ -17,6 +17,8 @@ export type AiSelection = {
17
17
  intentId?: string;
18
18
  variableId?: string;
19
19
  url?: string;
20
+ label?: string;
21
+ intent?: string;
20
22
  };
21
23
  export type AiSelector = {
22
24
  selectAnswer: (value: AiSelection | null) => void;
@@ -6,6 +6,7 @@ export declare const AtomItemAiDropdown: React.ForwardRefExoticComponent<{
6
6
  answers?: import('../ai-dropdown').Answer[] | undefined;
7
7
  fontWeight?: "bold" | "regular" | undefined;
8
8
  className?: string | undefined;
9
+ intent?: string | undefined;
9
10
  contentClassname?: string | undefined;
10
11
  onNewAnswer?: ((draft?: boolean | undefined, path?: string | undefined) => void) | undefined;
11
12
  hasSearch?: boolean | undefined;
@@ -16,6 +17,7 @@ export declare const AtomItemSingleAiDropdown: React.ForwardRefExoticComponent<{
16
17
  answers?: import('../ai-dropdown').Answer[] | undefined;
17
18
  fontWeight?: "bold" | "regular" | undefined;
18
19
  className?: string | undefined;
20
+ intent?: string | undefined;
19
21
  contentClassname?: string | undefined;
20
22
  onNewAnswer?: ((draft?: boolean | undefined, path?: string | undefined) => void) | undefined;
21
23
  hasSearch?: boolean | undefined;
@@ -9,6 +9,7 @@ export type AtomItemAiDropdownProps = {
9
9
  answers?: Answer[];
10
10
  fontWeight?: FontWeight;
11
11
  className?: string;
12
+ intent?: string;
12
13
  contentClassname?: string;
13
14
  onNewAnswer?: (draft?: boolean, path?: string) => void;
14
15
  hasSearch?: boolean;
@@ -0,0 +1,6 @@
1
+ import { ChatInputProps } from './types';
2
+
3
+ /**
4
+ * Chat Input component
5
+ */
6
+ export declare const ChatInput: import('react').ForwardRefExoticComponent<ChatInputProps & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import { ChatInput } from '.';
4
+
5
+ declare const _default: import('@storybook/csf').ComponentAnnotations<import('@storybook/react/dist/types-a5624094').R, import('.').ChatInputProps & React.RefAttributes<HTMLTextAreaElement>>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof ChatInput>;
8
+ export declare const Default: Story;
9
+ export declare const Icons: Story;
10
+ export declare const Error: Story;
11
+ export declare const Disabled: Story;
12
+ export declare const WithTagsAndIcons: Story;
@@ -0,0 +1,2 @@
1
+ export { ChatInput } from './chat-input';
2
+ export type { ChatInputProps, TextFieldSizes, TextFieldVariants } from './types';
@@ -0,0 +1,37 @@
1
+ import { TEXT_FIELD_SIZES, TEXT_FIELD_VARIANTS } from '../text-field/constants';
2
+ import { ChangeEvent, FocusEvent } from 'react';
3
+ import { TagProps } from '../../tag';
4
+
5
+ export type TextFieldSizes = (typeof TEXT_FIELD_SIZES)[number];
6
+ export type TextFieldVariants = (typeof TEXT_FIELD_VARIANTS)[number];
7
+ export type ChatInputProps = {
8
+ label?: React.ReactNode;
9
+ placeholder?: string;
10
+ helperText?: React.ReactNode;
11
+ error?: boolean;
12
+ disabled?: boolean;
13
+ size?: TextFieldSizes;
14
+ variant?: TextFieldVariants;
15
+ leftIcon?: React.ReactNode;
16
+ rows?: number;
17
+ maxLength?: number;
18
+ value?: string;
19
+ defaultValue?: string;
20
+ onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
21
+ onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
22
+ className?: string;
23
+ rightIcon?: React.ReactNode;
24
+ leftIconTwo?: React.ReactNode;
25
+ rightIconTwo?: React.ReactNode;
26
+ contentClassName?: string;
27
+ resize?: boolean;
28
+ autoResize?: boolean;
29
+ inputClassName?: string;
30
+ tags?: TagProps[];
31
+ onTagsChange?: (tags: TagProps[]) => void;
32
+ };
33
+ export type ResizerProps = {
34
+ autoResize?: boolean;
35
+ value: string | number | readonly string[];
36
+ children: React.ReactNode;
37
+ };
@@ -9,4 +9,3 @@ export declare const Default: Story;
9
9
  export declare const Icons: Story;
10
10
  export declare const Error: Story;
11
11
  export declare const Disabled: Story;
12
- export declare const WithTagsAndIcons: Story;
@@ -1,6 +1,5 @@
1
1
  import { TEXT_FIELD_SIZES, TEXT_FIELD_VARIANTS } from '../text-field/constants';
2
2
  import { ChangeEvent, FocusEvent } from 'react';
3
- import { TagProps } from '../../tag';
4
3
 
5
4
  export type TextFieldSizes = (typeof TEXT_FIELD_SIZES)[number];
6
5
  export type TextFieldVariants = (typeof TEXT_FIELD_VARIANTS)[number];
@@ -27,8 +26,6 @@ export type InputTextFieldMultilineProps = {
27
26
  resize?: boolean;
28
27
  autoResize?: boolean;
29
28
  inputClassName?: string;
30
- tags?: TagProps[];
31
- onTagsChange?: (tags: TagProps[]) => void;
32
29
  };
33
30
  export type ResizerProps = {
34
31
  autoResize?: boolean;
package/dist/index.d.ts CHANGED
@@ -31,6 +31,8 @@ export { Caption } from './components/caption';
31
31
  export type { CaptionProps } from './components/caption';
32
32
  export { ChatRoot, ChatContainer, ChatTrigger, ChatHeader, ChatContent } from './components/ai-chat';
33
33
  export type { ChatContainerProps, ChatTriggerProps, HeaderTypes, Message, BotCardMessage, BotCarouselMessage, BotImageMessage, BotTextMessage, BotTypingMessage, BotVideoMessage, FeedbackRequest, UserButtonMessage, UserTextMessage, } from './components/ai-chat';
34
+ export { ChatInput } from './components/input/chat-input';
35
+ export type { ChatInputProps } from './components/input/chat-input';
34
36
  export { Checkbox } from './components/input/checkbox';
35
37
  export type { CheckboxProps, CheckboxPositions } from './components/input/checkbox';
36
38
  export { Divider } from './components/divider';