@agentiffai/design 0.1.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 +35 -0
- package/LICENSE +21 -0
- package/README.md +187 -0
- package/assets/layout/main-pane-section.png +0 -0
- package/assets/layout/nav-complete.png +0 -0
- package/assets/layout/nav-horizontal-section.png +0 -0
- package/assets/layout/nav-vertical-section.png +0 -0
- package/assets/layout/pane-section-dropdowns.png +0 -0
- package/assets/layout/pane-section-header.png +0 -0
- package/dist/Window-B6e_UfLV.d.ts +429 -0
- package/dist/Window-CgGFIYHS.d.cts +429 -0
- package/dist/chunk-CNVJ5UF2.js +2069 -0
- package/dist/chunk-CNVJ5UF2.js.map +1 -0
- package/dist/chunk-CVHHTWDQ.cjs +72 -0
- package/dist/chunk-CVHHTWDQ.cjs.map +1 -0
- package/dist/chunk-H4VHCHCP.cjs +1268 -0
- package/dist/chunk-H4VHCHCP.cjs.map +1 -0
- package/dist/chunk-JQ6Q7MDQ.js +67 -0
- package/dist/chunk-JQ6Q7MDQ.js.map +1 -0
- package/dist/chunk-KNSPBTTJ.cjs +2158 -0
- package/dist/chunk-KNSPBTTJ.cjs.map +1 -0
- package/dist/chunk-MNXQDDWP.js +2143 -0
- package/dist/chunk-MNXQDDWP.js.map +1 -0
- package/dist/chunk-P4Q3MHIY.cjs +2093 -0
- package/dist/chunk-P4Q3MHIY.cjs.map +1 -0
- package/dist/chunk-PAOXD7DF.js +1253 -0
- package/dist/chunk-PAOXD7DF.js.map +1 -0
- package/dist/copilotkit/index.cjs +611 -0
- package/dist/copilotkit/index.cjs.map +1 -0
- package/dist/copilotkit/index.d.cts +162 -0
- package/dist/copilotkit/index.d.ts +162 -0
- package/dist/copilotkit/index.js +538 -0
- package/dist/copilotkit/index.js.map +1 -0
- package/dist/icons/index.cjs +48 -0
- package/dist/icons/index.cjs.map +1 -0
- package/dist/icons/index.d.cts +375 -0
- package/dist/icons/index.d.ts +375 -0
- package/dist/icons/index.js +3 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.cjs +536 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d-DYU1eVeb.d.cts +252 -0
- package/dist/index.d-DYU1eVeb.d.ts +252 -0
- package/dist/index.d.cts +185 -0
- package/dist/index.d.ts +185 -0
- package/dist/index.js +358 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.cjs +48 -0
- package/dist/layout/index.cjs.map +1 -0
- package/dist/layout/index.d.cts +206 -0
- package/dist/layout/index.d.ts +206 -0
- package/dist/layout/index.js +3 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/theme/index.cjs +24 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.cts +95 -0
- package/dist/theme/index.d.ts +95 -0
- package/dist/theme/index.js +3 -0
- package/dist/theme/index.js.map +1 -0
- package/package.json +148 -0
- package/public/assets/bg-set/brand-logos/Google.svg +1 -0
- package/public/assets/bg-set/brand-logos/Google2.svg +1 -0
- package/public/assets/bg-set/brand-logos/Microsoft.svg +1 -0
- package/public/assets/bg-set/brand-logos/Microsoft2.svg +1 -0
- package/public/assets/bg-set/brand-logos/Slack.svg +1 -0
- package/public/assets/bg-set/brand-logos/Slack2.svg +1 -0
- package/public/assets/bg-set/brand-logos/YouTube.svg +1 -0
- package/public/assets/bg-set/brand-logos/YouTube2.svg +1 -0
- package/public/assets/bg-set/pattern/Size=lg, Type=Waves Rays2.svg +1 -0
- package/public/assets/bg-set/pattern/Size=md, Type=Waves Rays2.svg +1 -0
- package/public/assets/bg-set/pattern/Size=sm, Type=Waves Rays2.svg +1 -0
- package/public/assets/bg-set/pattern/Size=xl, Type=Waves Rays2.svg +1 -0
- package/public/assets/bg-set/pattern/Size=xs, Type=Waves Rays2.svg +1 -0
- package/public/assets/icon-set/Icon-add-circle-fill.svg +1 -0
- package/public/assets/icon-set/Icon-calendar-fill.svg +1 -0
- package/public/assets/icon-set/Icon-chat-1-fill.svg +1 -0
- package/public/assets/icon-set/Icon-download-2-fill.svg +1 -0
- package/public/assets/icon-set/Icon-home-fill.svg +1 -0
- package/public/assets/icon-set/Icon-mic-fill.svg +1 -0
- package/public/assets/icon-set/Icon-settings-3-fill.svg +1 -0
- package/public/assets/icon-set/Icon-settings-fill.svg +1 -0
- package/public/assets/icon-set/Icon-settings-line.svg +1 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export { A as Action, c as ActionVariant, d as Actions, a as ActionsLayout, b as ActionsProps, f as AgentState, e as AgentStateProps, q as AssistantMessage, m as AssistantMessageProps, i as Button, B as ButtonProps, g as ButtonSize, h as ButtonVariant, r as FileAttachment, n as FileAttachmentProps, j as Footer, F as FooterProps, k as Header, H as HeaderProps, l as Input, I as InputProps, M as Message, s as Messages, t as MessagesList, u as MessagesListContainer, v as MessagesListContent, o as MessagesListProps, p as MessagesProps, x as Response, R as ResponseProps, y as Suggestions, S as SuggestionsProps, w as UserMessage, U as UserMessageProps, z as Window, W as WindowProps } from '../Window-CgGFIYHS.cjs';
|
|
2
|
+
import { AssistantMessageProps, InputProps, UserMessageProps } from '@copilotkit/react-ui';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import '@react-aria/button';
|
|
6
|
+
import '@react-aria/textfield';
|
|
7
|
+
import '../index.d-DYU1eVeb.cjs';
|
|
8
|
+
import 'styled-components';
|
|
9
|
+
import 'styled-components/dist/types';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Adapter component that bridges custom AssistantMessage with CopilotKit's expected interface
|
|
13
|
+
*
|
|
14
|
+
* This adapter:
|
|
15
|
+
* 1. Converts CopilotKit's AssistantMessageProps to our custom component props
|
|
16
|
+
* 2. Handles loading states by showing AssistantThinking component
|
|
17
|
+
* 3. Extracts message content and renders with our styled component
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Adapter that converts CopilotKit's AssistantMessageProps to our custom component
|
|
22
|
+
*/
|
|
23
|
+
declare const AssistantMessageAdapter: React__default.FC<AssistantMessageProps>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Adapter component that bridges custom Input with CopilotKit's expected interface
|
|
27
|
+
*
|
|
28
|
+
* This adapter:
|
|
29
|
+
* 1. Converts CopilotKit's InputProps to our custom component props
|
|
30
|
+
* 2. Handles the onSend callback to work with CopilotKit's message system
|
|
31
|
+
* 3. Manages input state and submission
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Adapter that converts CopilotKit's InputProps to our custom component
|
|
36
|
+
*/
|
|
37
|
+
declare const InputAdapter: React__default.FC<InputProps>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Adapter component that bridges custom UserMessage with CopilotKit's expected interface
|
|
41
|
+
*
|
|
42
|
+
* This adapter:
|
|
43
|
+
* 1. Converts CopilotKit's UserMessageProps to our custom component props
|
|
44
|
+
* 2. Extracts message content from CopilotKit's message object
|
|
45
|
+
* 3. Handles image messages appropriately
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Adapter that converts CopilotKit's UserMessageProps to our custom component
|
|
50
|
+
*/
|
|
51
|
+
declare const UserMessageAdapter: React__default.FC<UserMessageProps>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Complete CopilotSidebar Integration Example
|
|
55
|
+
*
|
|
56
|
+
* This file demonstrates how to integrate custom-designed components
|
|
57
|
+
* (AssistantMessage, UserMessage, AssistantThinking, Input) with CopilotKit's
|
|
58
|
+
* CopilotSidebar component using adapter components.
|
|
59
|
+
*
|
|
60
|
+
* Usage:
|
|
61
|
+
* ```tsx
|
|
62
|
+
* import { CopilotKit } from "@copilotkit/react-core";
|
|
63
|
+
* import { CustomCopilotSidebar } from "./CopilotSidebarIntegration";
|
|
64
|
+
*
|
|
65
|
+
* function App() {
|
|
66
|
+
* return (
|
|
67
|
+
* <CopilotKit runtimeUrl="/api/copilotkit">
|
|
68
|
+
* <CustomCopilotSidebar>
|
|
69
|
+
* <YourApp />
|
|
70
|
+
* </CustomCopilotSidebar>
|
|
71
|
+
* </CopilotKit>
|
|
72
|
+
* );
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
interface CustomCopilotSidebarProps$1 {
|
|
78
|
+
/**
|
|
79
|
+
* Children to render alongside the sidebar
|
|
80
|
+
*/
|
|
81
|
+
children?: React__default.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Instructions for the AI assistant
|
|
84
|
+
*/
|
|
85
|
+
instructions?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Custom labels for the sidebar
|
|
88
|
+
*/
|
|
89
|
+
labels?: {
|
|
90
|
+
title?: string;
|
|
91
|
+
initial?: string;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Custom icons
|
|
95
|
+
*/
|
|
96
|
+
icons?: Record<string, React__default.ReactNode>;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the sidebar starts open
|
|
99
|
+
*/
|
|
100
|
+
defaultOpen?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Allow closing by clicking outside
|
|
103
|
+
*/
|
|
104
|
+
clickOutsideToClose?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Allow closing with Escape key
|
|
107
|
+
*/
|
|
108
|
+
hitEscapeToClose?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Keyboard shortcut to open
|
|
111
|
+
*/
|
|
112
|
+
shortcut?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Callback when open state changes
|
|
115
|
+
*/
|
|
116
|
+
onSetOpen?: (open: boolean) => void;
|
|
117
|
+
/**
|
|
118
|
+
* CSS class name
|
|
119
|
+
*/
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* CopilotSidebar with custom-designed components
|
|
124
|
+
*
|
|
125
|
+
* This component wraps CopilotKit's CopilotSidebar and injects our
|
|
126
|
+
* custom components via adapter components.
|
|
127
|
+
*
|
|
128
|
+
* Features:
|
|
129
|
+
* - Custom AssistantMessage with avatar and loading states
|
|
130
|
+
* - AssistantThinking component shown during loading
|
|
131
|
+
* - Custom UserMessage with gradient pill design
|
|
132
|
+
* - Custom Input with React ARIA accessibility
|
|
133
|
+
* - Styled chat button with gradient
|
|
134
|
+
*/
|
|
135
|
+
declare const CustomCopilotSidebar$1: React__default.FC<CustomCopilotSidebarProps$1>;
|
|
136
|
+
|
|
137
|
+
interface CustomCopilotSidebarProps {
|
|
138
|
+
children: ReactNode;
|
|
139
|
+
defaultOpen?: boolean;
|
|
140
|
+
onSetOpen?: (open: boolean) => void;
|
|
141
|
+
instructions?: string;
|
|
142
|
+
className?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* CustomCopilotSidebar - A CopilotSidebar wrapper using our custom components
|
|
146
|
+
*
|
|
147
|
+
* This component wraps CopilotKit's CopilotSidebar and provides our custom
|
|
148
|
+
* design system components for a consistent look and feel.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```tsx
|
|
152
|
+
* <CustomCopilotSidebar defaultOpen={false} onSetOpen={(open) => console.log(open)}>
|
|
153
|
+
* <YourApp />
|
|
154
|
+
* </CustomCopilotSidebar>
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
declare function CustomCopilotSidebar({ children, defaultOpen, onSetOpen, instructions, className, }: CustomCopilotSidebarProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare namespace CustomCopilotSidebar {
|
|
159
|
+
var displayName: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { AssistantMessageAdapter, CustomCopilotSidebar, type CustomCopilotSidebarProps, InputAdapter, CustomCopilotSidebar$1 as IntegratedSidebar, type CustomCopilotSidebarProps$1 as IntegratedSidebarProps, UserMessageAdapter };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export { A as Action, c as ActionVariant, d as Actions, a as ActionsLayout, b as ActionsProps, f as AgentState, e as AgentStateProps, q as AssistantMessage, m as AssistantMessageProps, i as Button, B as ButtonProps, g as ButtonSize, h as ButtonVariant, r as FileAttachment, n as FileAttachmentProps, j as Footer, F as FooterProps, k as Header, H as HeaderProps, l as Input, I as InputProps, M as Message, s as Messages, t as MessagesList, u as MessagesListContainer, v as MessagesListContent, o as MessagesListProps, p as MessagesProps, x as Response, R as ResponseProps, y as Suggestions, S as SuggestionsProps, w as UserMessage, U as UserMessageProps, z as Window, W as WindowProps } from '../Window-B6e_UfLV.js';
|
|
2
|
+
import { AssistantMessageProps, InputProps, UserMessageProps } from '@copilotkit/react-ui';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import '@react-aria/button';
|
|
6
|
+
import '@react-aria/textfield';
|
|
7
|
+
import '../index.d-DYU1eVeb.js';
|
|
8
|
+
import 'styled-components';
|
|
9
|
+
import 'styled-components/dist/types';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Adapter component that bridges custom AssistantMessage with CopilotKit's expected interface
|
|
13
|
+
*
|
|
14
|
+
* This adapter:
|
|
15
|
+
* 1. Converts CopilotKit's AssistantMessageProps to our custom component props
|
|
16
|
+
* 2. Handles loading states by showing AssistantThinking component
|
|
17
|
+
* 3. Extracts message content and renders with our styled component
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Adapter that converts CopilotKit's AssistantMessageProps to our custom component
|
|
22
|
+
*/
|
|
23
|
+
declare const AssistantMessageAdapter: React__default.FC<AssistantMessageProps>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Adapter component that bridges custom Input with CopilotKit's expected interface
|
|
27
|
+
*
|
|
28
|
+
* This adapter:
|
|
29
|
+
* 1. Converts CopilotKit's InputProps to our custom component props
|
|
30
|
+
* 2. Handles the onSend callback to work with CopilotKit's message system
|
|
31
|
+
* 3. Manages input state and submission
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Adapter that converts CopilotKit's InputProps to our custom component
|
|
36
|
+
*/
|
|
37
|
+
declare const InputAdapter: React__default.FC<InputProps>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Adapter component that bridges custom UserMessage with CopilotKit's expected interface
|
|
41
|
+
*
|
|
42
|
+
* This adapter:
|
|
43
|
+
* 1. Converts CopilotKit's UserMessageProps to our custom component props
|
|
44
|
+
* 2. Extracts message content from CopilotKit's message object
|
|
45
|
+
* 3. Handles image messages appropriately
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Adapter that converts CopilotKit's UserMessageProps to our custom component
|
|
50
|
+
*/
|
|
51
|
+
declare const UserMessageAdapter: React__default.FC<UserMessageProps>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Complete CopilotSidebar Integration Example
|
|
55
|
+
*
|
|
56
|
+
* This file demonstrates how to integrate custom-designed components
|
|
57
|
+
* (AssistantMessage, UserMessage, AssistantThinking, Input) with CopilotKit's
|
|
58
|
+
* CopilotSidebar component using adapter components.
|
|
59
|
+
*
|
|
60
|
+
* Usage:
|
|
61
|
+
* ```tsx
|
|
62
|
+
* import { CopilotKit } from "@copilotkit/react-core";
|
|
63
|
+
* import { CustomCopilotSidebar } from "./CopilotSidebarIntegration";
|
|
64
|
+
*
|
|
65
|
+
* function App() {
|
|
66
|
+
* return (
|
|
67
|
+
* <CopilotKit runtimeUrl="/api/copilotkit">
|
|
68
|
+
* <CustomCopilotSidebar>
|
|
69
|
+
* <YourApp />
|
|
70
|
+
* </CustomCopilotSidebar>
|
|
71
|
+
* </CopilotKit>
|
|
72
|
+
* );
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
interface CustomCopilotSidebarProps$1 {
|
|
78
|
+
/**
|
|
79
|
+
* Children to render alongside the sidebar
|
|
80
|
+
*/
|
|
81
|
+
children?: React__default.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* Instructions for the AI assistant
|
|
84
|
+
*/
|
|
85
|
+
instructions?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Custom labels for the sidebar
|
|
88
|
+
*/
|
|
89
|
+
labels?: {
|
|
90
|
+
title?: string;
|
|
91
|
+
initial?: string;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Custom icons
|
|
95
|
+
*/
|
|
96
|
+
icons?: Record<string, React__default.ReactNode>;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the sidebar starts open
|
|
99
|
+
*/
|
|
100
|
+
defaultOpen?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Allow closing by clicking outside
|
|
103
|
+
*/
|
|
104
|
+
clickOutsideToClose?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Allow closing with Escape key
|
|
107
|
+
*/
|
|
108
|
+
hitEscapeToClose?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Keyboard shortcut to open
|
|
111
|
+
*/
|
|
112
|
+
shortcut?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Callback when open state changes
|
|
115
|
+
*/
|
|
116
|
+
onSetOpen?: (open: boolean) => void;
|
|
117
|
+
/**
|
|
118
|
+
* CSS class name
|
|
119
|
+
*/
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* CopilotSidebar with custom-designed components
|
|
124
|
+
*
|
|
125
|
+
* This component wraps CopilotKit's CopilotSidebar and injects our
|
|
126
|
+
* custom components via adapter components.
|
|
127
|
+
*
|
|
128
|
+
* Features:
|
|
129
|
+
* - Custom AssistantMessage with avatar and loading states
|
|
130
|
+
* - AssistantThinking component shown during loading
|
|
131
|
+
* - Custom UserMessage with gradient pill design
|
|
132
|
+
* - Custom Input with React ARIA accessibility
|
|
133
|
+
* - Styled chat button with gradient
|
|
134
|
+
*/
|
|
135
|
+
declare const CustomCopilotSidebar$1: React__default.FC<CustomCopilotSidebarProps$1>;
|
|
136
|
+
|
|
137
|
+
interface CustomCopilotSidebarProps {
|
|
138
|
+
children: ReactNode;
|
|
139
|
+
defaultOpen?: boolean;
|
|
140
|
+
onSetOpen?: (open: boolean) => void;
|
|
141
|
+
instructions?: string;
|
|
142
|
+
className?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* CustomCopilotSidebar - A CopilotSidebar wrapper using our custom components
|
|
146
|
+
*
|
|
147
|
+
* This component wraps CopilotKit's CopilotSidebar and provides our custom
|
|
148
|
+
* design system components for a consistent look and feel.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```tsx
|
|
152
|
+
* <CustomCopilotSidebar defaultOpen={false} onSetOpen={(open) => console.log(open)}>
|
|
153
|
+
* <YourApp />
|
|
154
|
+
* </CustomCopilotSidebar>
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
declare function CustomCopilotSidebar({ children, defaultOpen, onSetOpen, instructions, className, }: CustomCopilotSidebarProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare namespace CustomCopilotSidebar {
|
|
159
|
+
var displayName: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { AssistantMessageAdapter, CustomCopilotSidebar, type CustomCopilotSidebarProps, InputAdapter, CustomCopilotSidebar$1 as IntegratedSidebar, type CustomCopilotSidebarProps$1 as IntegratedSidebarProps, UserMessageAdapter };
|