@altimateai/ui-components 0.0.23 → 0.0.24-beta.1

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.
@@ -34,3 +34,10 @@ export const Outline: Story = {
34
34
  children: "Outline",
35
35
  },
36
36
  };
37
+
38
+ export const Success: Story = {
39
+ args: {
40
+ variant: "success",
41
+ children: "Success",
42
+ },
43
+ };
@@ -31,7 +31,7 @@ export const WithForm = () => (
31
31
  <CardDescription>Enter your details below.</CardDescription>
32
32
  </CardHeader>
33
33
  <CardContent>
34
- <div className="grid w-full items-center gap-4">
34
+ <div className="grid al-w-full items-center gap-4">
35
35
  <div className="flex flex-col space-y-1.5">
36
36
  <label htmlFor="name">Name</label>
37
37
  <input id="name" className="border rounded p-2" />
@@ -63,7 +63,7 @@ export const Pricing = () => (
63
63
  </ul>
64
64
  </CardContent>
65
65
  <CardFooter>
66
- <Button className="w-full">Subscribe</Button>
66
+ <Button className="al-w-full">Subscribe</Button>
67
67
  </CardFooter>
68
68
  </Card>
69
69
  );
@@ -19,7 +19,7 @@ Default.args = {
19
19
  };
20
20
 
21
21
  export const WithInput = () => (
22
- <div className="grid w-full max-w-sm items-center gap-1.5">
22
+ <div className="grid al-w-full max-w-sm items-center gap-1.5">
23
23
  <Label htmlFor="email">Email</Label>
24
24
  <Input type="email" id="email" placeholder="Enter your email" />
25
25
  </div>
@@ -35,7 +35,7 @@ Required.args = {
35
35
  };
36
36
 
37
37
  export const Disabled = () => (
38
- <div className="grid w-full max-w-sm items-center gap-1.5">
38
+ <div className="grid al-w-full max-w-sm items-center gap-1.5">
39
39
  <Label htmlFor="disabled">Disabled Label</Label>
40
40
  <Input id="disabled" disabled />
41
41
  </div>
@@ -43,8 +43,8 @@ export const Typography: Story = {
43
43
  Heading 1 <br />
44
44
  Bold
45
45
  </Component>
46
- <Component variant="caption" className="al-text-gray-500">
47
- 48px / Line height: 60px
46
+ <Component variant="caption" className="text-gray-500">
47
+ 32px / Line height: 32px
48
48
  </Component>
49
49
  </div>
50
50
 
@@ -70,8 +70,8 @@ export const Typography: Story = {
70
70
  Heading 2 <br />
71
71
  Bold
72
72
  </Component>
73
- <Component variant="caption" className="al-text-gray-500">
74
- 36px / Line height: 44px
73
+ <Component variant="caption" className="text-gray-500">
74
+ 24px / Line height: 32px
75
75
  </Component>
76
76
  </div>
77
77
 
@@ -97,8 +97,8 @@ export const Typography: Story = {
97
97
  Heading 3 <br />
98
98
  Bold
99
99
  </Component>
100
- <Component variant="caption" className="al-text-gray-500">
101
- 30px / Line height: 38px
100
+ <Component variant="caption" className="text-gray-500">
101
+ 18px / Line height: 26px
102
102
  </Component>
103
103
  </div>
104
104
 
@@ -124,8 +124,8 @@ export const Typography: Story = {
124
124
  Heading 4 <br />
125
125
  Bold
126
126
  </Component>
127
- <Component variant="caption" className="al-text-gray-500">
128
- 24px / Line height: 32px
127
+ <Component variant="caption" className="text-gray-500">
128
+ 16px / Line height: 24px
129
129
  </Component>
130
130
  </div>
131
131
 
@@ -151,8 +151,8 @@ export const Typography: Story = {
151
151
  Sub heading <br />
152
152
  Bold
153
153
  </Component>
154
- <Component variant="caption" className="al-text-gray-500">
155
- 20px / Line height: 30px
154
+ <Component variant="caption" className="text-gray-500">
155
+ 14px / Line height: 20px
156
156
  </Component>
157
157
  </div>
158
158
 
@@ -173,8 +173,8 @@ export const Typography: Story = {
173
173
  <Component variant="body" size="xl">
174
174
  Body XL <br /> Regular
175
175
  </Component>
176
- <Component variant="caption" className="al-text-gray-500">
177
- 20px, 16px, 14px, 12px | Line height: 30px, 24px, 20px, 18px
176
+ <Component variant="caption" className="text-gray-500">
177
+ 14px, 10px, 8px | Line height: 18px, 16px, 14px
178
178
  </Component>
179
179
  </div>
180
180
 
@@ -195,8 +195,8 @@ export const Typography: Story = {
195
195
  <Component variant="caption" weight="medium" size="lg">
196
196
  Caption LG <br /> Medium
197
197
  </Component>
198
- <Component variant="caption" className="al-text-gray-500">
199
- 12px, 14px, 16px | Line height: 24px, 20px, 18px
198
+ <Component variant="caption" className="text-gray-500">
199
+ 14px, 10px | Line height: 18px, 16px
200
200
  </Component>
201
201
  </div>
202
202
  </div>
@@ -104,6 +104,7 @@ interface ChatMessage {
104
104
  artifacts?: Artifact[];
105
105
  heading: string;
106
106
  citations?: Citation[];
107
+ todos?: TodoItem[];
107
108
  }
108
109
  interface Artifact {
109
110
  content: string;
@@ -119,6 +120,7 @@ interface ChatResponse {
119
120
  timestamp: number;
120
121
  artifacts?: Artifact[];
121
122
  heading: string;
123
+ todos?: TodoItem[];
122
124
  }
123
125
  interface ChatState {
124
126
  sessions: Record<string, ChatSession>;
@@ -127,6 +129,7 @@ interface ChatState {
127
129
  error: string | null;
128
130
  abortController: AbortController | null;
129
131
  currentActions: AgentAction[];
132
+ currentTodos: TodoItem[];
130
133
  taskLabel?: keyof typeof TaskLabels;
131
134
  initialValidation?: (data: {
132
135
  context: ChatSession["context"];
@@ -143,11 +146,36 @@ interface ChatState {
143
146
  feedback?: ReactNode;
144
147
  };
145
148
  }
149
+ interface TodoItem {
150
+ id: string;
151
+ content: string;
152
+ status: "pending" | "in_progress" | "completed";
153
+ priority: "high" | "medium" | "low";
154
+ }
155
+ interface ToolUsageData {
156
+ tool: string;
157
+ id: string;
158
+ }
159
+ interface ProgressUpdate {
160
+ timestamp: string;
161
+ todos: TodoItem[];
162
+ }
163
+ interface FinalResponseData {
164
+ tool_usage?: ToolUsageData[];
165
+ turns?: number;
166
+ tools_used?: number;
167
+ progress_updates?: ProgressUpdate[];
168
+ total_progress_updates?: number;
169
+ }
146
170
  interface AgentStreamResponse {
147
171
  id?: string;
148
- type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations";
172
+ type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations" | "text" | "tool_use" | "final_response" | "complete";
149
173
  heading?: string;
150
- content: string;
174
+ content?: string;
175
+ tool?: string;
176
+ todos?: TodoItem[];
177
+ response?: string;
178
+ data?: FinalResponseData;
151
179
  interaction?: {
152
180
  type: "text" | "multiSelect" | "confirm" | "select";
153
181
  id: string;
@@ -271,4 +299,4 @@ interface Citation {
271
299
  taskLabel: TaskLabels;
272
300
  }
273
301
 
274
- export { type Artifact as A, type CoachAiResponse as C, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type AssistantMeta as s, type ChatSession as t, type FileUploadProps as u, type ChatbotUrls as v, type InteractionType as w, type InteractionChoice as x, type AgentStreamResponse as y };
302
+ export { type Artifact as A, type ProgressUpdate as B, type CoachAiResponse as C, type FinalResponseData as D, type AgentStreamResponse as E, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type AssistantMeta as s, type ChatSession as t, type FileUploadProps as u, type ChatbotUrls as v, type InteractionType as w, type InteractionChoice as x, type TodoItem as y, type ToolUsageData as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.23",
3
+ "version": "0.0.24-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"
@@ -52,4 +52,4 @@
52
52
  "react": "^17.0.0 || ^18.0.0",
53
53
  "react-dom": "^17.0.0 || ^18.0.0"
54
54
  }
55
- }
55
+ }
package/dist/Label.js DELETED
@@ -1,48 +0,0 @@
1
- import { j as o } from "./index2.js";
2
- import * as l from "react";
3
- import "react-dom";
4
- import { c, a as b, b as p } from "./Stack.js";
5
- var v = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], w = v.reduce((e, t) => {
24
- const a = c(`Primitive.${t}`), i = l.forwardRef((r, m) => {
25
- const { asChild: d, ...f } = r, u = d ? a : t;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o.jsx(u, { ...f, ref: m });
27
- });
28
- return i.displayName = `Primitive.${t}`, { ...e, [t]: i };
29
- }, {}), x = "Label", s = l.forwardRef((e, t) => /* @__PURE__ */ o.jsx(
30
- w.label,
31
- {
32
- ...e,
33
- ref: t,
34
- onMouseDown: (a) => {
35
- var r;
36
- a.target.closest("button, input, select, textarea") || ((r = e.onMouseDown) == null || r.call(e, a), !a.defaultPrevented && a.detail > 1 && a.preventDefault());
37
- }
38
- }
39
- ));
40
- s.displayName = x;
41
- var n = s;
42
- const N = p(
43
- "al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
44
- ), y = l.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(n, { ref: a, className: b(N(), e), ...t }));
45
- y.displayName = n.displayName;
46
- export {
47
- y as L
48
- };