@indigoai/indigo-design-system 0.10.13 → 0.10.15

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 (25) hide show
  1. package/dist/components/block-builders/atom-top-modulo/types.d.ts +1 -1
  2. package/dist/components/block-builders/block/constants.d.ts +1 -1
  3. package/dist/components/block-builders/block/types.d.ts +1 -1
  4. package/dist/components/dropdown/document-dropdown/atom-item-document-dropdown/atom-item-document-dropdown.d.ts +5 -0
  5. package/dist/components/dropdown/document-dropdown/atom-item-document-dropdown/constants.d.ts +1 -0
  6. package/dist/components/dropdown/document-dropdown/atom-item-document-dropdown/index.d.ts +2 -0
  7. package/dist/components/dropdown/document-dropdown/atom-item-document-dropdown/types.d.ts +8 -0
  8. package/dist/components/dropdown/document-dropdown/atom-sub-document-dropdown/atom-sub-document-dropdown.d.ts +15 -0
  9. package/dist/components/dropdown/document-dropdown/atom-sub-document-dropdown/index.d.ts +2 -0
  10. package/dist/components/dropdown/document-dropdown/atom-sub-document-dropdown/types.d.ts +8 -0
  11. package/dist/components/dropdown/document-dropdown/atom-top-document-dropdown/atom-top-document-dropdown.d.ts +3 -0
  12. package/dist/components/dropdown/document-dropdown/atom-top-document-dropdown/index.d.ts +1 -0
  13. package/dist/components/dropdown/document-dropdown/atom-trigger-document-dropdown/atom-trigger-document-dropdown.d.ts +3 -0
  14. package/dist/components/dropdown/document-dropdown/atom-trigger-document-dropdown/index.d.ts +1 -0
  15. package/dist/components/dropdown/document-dropdown/document-dropdown/document-dropdown.d.ts +8 -0
  16. package/dist/components/dropdown/document-dropdown/document-dropdown/document-dropdown.stories.d.ts +12 -0
  17. package/dist/components/dropdown/document-dropdown/document-dropdown/index.d.ts +2 -0
  18. package/dist/components/dropdown/document-dropdown/document-dropdown/types.d.ts +37 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/indigo-design-system.js +9171 -8841
  21. package/dist/indigo-design-system.js.map +1 -1
  22. package/dist/indigo-design-system.umd.cjs +39 -39
  23. package/dist/indigo-design-system.umd.cjs.map +1 -1
  24. package/dist/style.css +5 -5
  25. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { BlockType } from '../block/types';
3
3
 
4
4
  export type AtomTopModuloProps = {
5
5
  block?: BlockType;
6
- dragHandlerProps?: RefAttributes<SVGSVGElement>;
6
+ dragHandlerProps?: RefAttributes<HTMLDivElement>;
7
7
  isDragging?: boolean;
8
8
  isCollapsed?: boolean;
9
9
  onCopy?: () => void;
@@ -1 +1 @@
1
- export declare const BLOCKS: readonly ["text", "image", "video", "agent", "card", "handover", "contact_request", "quick_reply", "reroute", "api", "capture", "set_values", "condition", "notes", "mail"];
1
+ export declare const BLOCKS: readonly ["text", "image", "video", "agent", "card", "handover", "contact_request", "quick_reply", "reroute", "api", "capture", "set_values", "condition", "notes", "mail", "upload"];
@@ -7,7 +7,7 @@ export type BlockProps = {
7
7
  type?: string;
8
8
  insertPosition?: string;
9
9
  bodyClassName?: string;
10
- onCopyBlock?: () => void;
10
+ onCopy?: () => void;
11
11
  onDeleteBlock: () => void;
12
12
  headerClassName?: string;
13
13
  dragOverlay?: any;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { AtomItemDocumentDropdownProps } from './types';
3
+
4
+ export declare const AtomItemDocumentDropdown: React.ForwardRefExoticComponent<AtomItemDocumentDropdownProps & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const AtomItemSingleDocumentDropdown: React.ForwardRefExoticComponent<AtomItemDocumentDropdownProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export declare const FONT_WEIGHT: readonly ["regular", "bold"];
@@ -0,0 +1,2 @@
1
+ export { AtomItemDocumentDropdown } from './atom-item-document-dropdown';
2
+ export type { AtomItemDocumentDropdownProps } from './types';
@@ -0,0 +1,8 @@
1
+ import { DocumentDropDownItem } from '../document-dropdown';
2
+
3
+ export type AtomItemDocumentDropdownProps = {
4
+ label: string;
5
+ value: string;
6
+ isSelected: boolean;
7
+ onSelect: (selected: DocumentDropDownItem) => void;
8
+ };
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const AtomSubDocumentDropdown: React.ForwardRefExoticComponent<Omit<{
4
+ label: string | React.ReactElement<any, string | React.JSXElementConstructor<any>>;
5
+ children: React.ReactNode;
6
+ closeDelay?: number | undefined;
7
+ } & {
8
+ size?: "xs" | "sm" | "md" | "lg" | undefined;
9
+ fontWeight?: "bold" | "regular" | undefined;
10
+ color?: import('../../../../types').ColorVariants | undefined;
11
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
12
+ ref?: ((instance: HTMLParagraphElement | null) => void) | React.RefObject<HTMLParagraphElement> | null | undefined;
13
+ } & {
14
+ type?: "multiple" | "single" | undefined;
15
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { AtomSubDocumentDropdown } from './atom-sub-document-dropdown';
2
+ export type { AtomSubDocumentDropdownProps } from './types';
@@ -0,0 +1,8 @@
1
+ import { TextProps } from '../../../text';
2
+ import { ReactElement, ReactNode } from 'react';
3
+
4
+ export type AtomSubDocumentDropdownProps = {
5
+ label: string | ReactElement;
6
+ children: ReactNode;
7
+ closeDelay?: number;
8
+ } & TextProps;
@@ -0,0 +1,3 @@
1
+ import { InputTextFieldProps } from '../../../input/text-field';
2
+
3
+ export declare const AtomTopDocumentDropdown: import('react').ForwardRefExoticComponent<Omit<InputTextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export { AtomTopDocumentDropdown } from './atom-top-document-dropdown';
@@ -0,0 +1,3 @@
1
+ import { DocumentDropdownTriggerButtonProps } from '../document-dropdown/types';
2
+
3
+ export declare const AtomTriggerDocumentDropdown: import('react').ForwardRefExoticComponent<DocumentDropdownTriggerButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export { AtomTriggerDocumentDropdown } from './atom-trigger-document-dropdown';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DocumentDropdownContentProps } from './types';
3
+
4
+ export declare function DocumentDropdownContent({ documentTags, selectedTags, variables, selectedVariables, onConfirmSelection, searchProps, closeDelay, }: DocumentDropdownContentProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare const DocumentDropdown: React.ForwardRefExoticComponent<{
6
+ className?: string | undefined;
7
+ disabled?: boolean | undefined;
8
+ } & import('./types').DocumentDropdownTriggerProps & DocumentDropdownContentProps & import('@radix-ui/react-dropdown-menu').DropdownMenuProps & import('@radix-ui/react-dropdown-menu').DropdownMenuContentProps & React.RefAttributes<unknown>>;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import { DocumentDropdown } from './document-dropdown';
4
+ import { DocumentDropdownContentProps } from './types';
5
+
6
+ declare const _default: import('@storybook/csf').ComponentAnnotations<import('@storybook/react/dist/types-a5624094').R, {
7
+ className?: string | undefined;
8
+ disabled?: boolean | undefined;
9
+ } & import('./types').DocumentDropdownTriggerProps & DocumentDropdownContentProps & import('@radix-ui/react-dropdown-menu').DropdownMenuProps & import('@radix-ui/react-dropdown-menu').DropdownMenuContentProps & React.RefAttributes<unknown>>;
10
+ export default _default;
11
+ type Story = StoryObj<typeof DocumentDropdown>;
12
+ export declare const Template: Story;
@@ -0,0 +1,2 @@
1
+ export { DocumentDropdown, DocumentDropdownContent } from './document-dropdown';
2
+ export type { DocumentDropdownProps, DocumentDropDownItem } from './types';
@@ -0,0 +1,37 @@
1
+ import { DropdownMenuProps, DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
2
+ import { ReactElement } from 'react';
3
+ import { InputTextFieldProps } from '../../../input/text-field';
4
+ import { ButtonColor, ButtonSize, ButtonVariants } from '../../../button/types';
5
+
6
+ export type DocumentDropdownProps = {
7
+ className?: string;
8
+ disabled?: boolean;
9
+ } & DocumentDropdownTriggerProps & DocumentDropdownContentProps & DropdownMenuProps & DropdownMenuContentProps;
10
+ export type DocumentDropDownItem = {
11
+ value: string;
12
+ label: string;
13
+ };
14
+ export type DocumentDropdownTriggerProps = {
15
+ isOpen?: boolean;
16
+ fullWidth?: boolean;
17
+ };
18
+ export type DocumentDropdownContentProps = {
19
+ documentTags: DocumentDropDownItem[];
20
+ selectedTags: string[];
21
+ variables: DocumentDropDownItem[];
22
+ selectedVariables: string[];
23
+ onConfirmSelection: (tags: string[], variables: string[]) => void;
24
+ variablesContainer?: ReactElement;
25
+ searchProps?: InputTextFieldProps;
26
+ closeDelay?: number;
27
+ };
28
+ export type DocumentDropdownTriggerButtonProps = {
29
+ isOpen: boolean;
30
+ color?: ButtonColor;
31
+ disabled?: boolean;
32
+ fullWidth?: boolean;
33
+ variant?: ButtonVariants;
34
+ size?: ButtonSize;
35
+ label?: string;
36
+ children: ReactElement | string;
37
+ };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ export { Accordion, AccordionPanel } from './components/accordion';
3
3
  export type { AccordionProps, AccordionPanelProps } from './components/accordion';
4
4
  export { AiDropdown, AiDropdownContent } from './components/dropdown/ai-dropdown/ai-dropdown';
5
5
  export type { AiDropdownProps, TagAnswer, Answer, AiSelector, AiValue, } from './components/dropdown/ai-dropdown/ai-dropdown';
6
+ export { DocumentDropdown, DocumentDropdownContent } from './components/dropdown/document-dropdown/document-dropdown';
7
+ export type { DocumentDropdownProps, DocumentDropDownItem, } from './components/dropdown/document-dropdown/document-dropdown';
6
8
  export { AvatarBot } from './components/avatar-bot';
7
9
  export type { AvatarBotIcon, AvatarBotImage, AvatarBotProps } from './components/avatar-bot';
8
10
  export { Avatar } from './components/avatar-default';