@altimateai/ui-components 0.0.73 → 0.0.75-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.
- package/dist/CoachForm.js +725 -715
- package/dist/Stack.js +53 -27
- package/dist/ToggleGroup.js +2 -2
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/lineage/index.js +367 -367
- package/dist/main.js +1 -1
- package/dist/shadcn/index.d.ts +24 -12
- package/dist/shadcn/index.js +1 -1
- package/dist/storybook/Typography.stories.tsx +94 -93
- package/dist/{types-BdHGJOSE.d.ts → types-dxSjfpqi.d.ts} +3 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4496,7 +4496,7 @@ const Hi = {
|
|
|
4496
4496
|
/* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
|
|
4497
4497
|
/* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
|
|
4498
4498
|
/* @__PURE__ */ h.jsx(ft, { variant: "subheading", children: e.name }),
|
|
4499
|
-
/* @__PURE__ */ h.jsx(ft, {
|
|
4499
|
+
/* @__PURE__ */ h.jsx(ft, { children: e.description })
|
|
4500
4500
|
] })
|
|
4501
4501
|
] }),
|
|
4502
4502
|
/* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", children: [
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Button, B as ButtonProps, b as ButtonSize } from '../Button-42Dj_nRE.js';
|
|
1
|
+
import { a as Button, B as ButtonProps, b as ButtonSize$1 } from '../Button-42Dj_nRE.js';
|
|
2
2
|
export { c as buttonVariants } from '../Button-42Dj_nRE.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { DayPicker, DayButton, DateRange } from 'react-day-picker';
|
|
@@ -282,18 +282,30 @@ declare const DialogFooter: {
|
|
|
282
282
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
283
283
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
284
284
|
|
|
285
|
-
type
|
|
286
|
-
type
|
|
287
|
-
type
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
type HeadingVariant = "h1" | "h2" | "h3" | "h4";
|
|
286
|
+
type HeadingWeight = "medium" | "semibold";
|
|
287
|
+
type BodyWeight = "regular" | "medium";
|
|
288
|
+
type BodySize = "lg" | "regular" | "sm" | "xs" | "xxs";
|
|
289
|
+
type ButtonSize = "xs" | "sm" | "md";
|
|
290
|
+
type PlaceholderSize = "regular" | "large";
|
|
291
|
+
type TypographyVariant = HeadingVariant | "body" | "button" | "table-header" | "placeholder" | "subheading" | "caption";
|
|
292
|
+
type WeightForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "table-header" ? HeadingWeight : V extends "body" | "caption" ? BodyWeight : never;
|
|
293
|
+
interface BaseProps {
|
|
290
294
|
children: React.ReactNode;
|
|
291
295
|
className?: string;
|
|
292
|
-
weight?: FontWeight;
|
|
293
|
-
size?: FontSize;
|
|
294
296
|
role?: AriaRole | undefined;
|
|
295
297
|
}
|
|
296
|
-
|
|
298
|
+
type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & {
|
|
299
|
+
variant?: V;
|
|
300
|
+
weight?: WeightForVariant<V>;
|
|
301
|
+
} & (V extends HeadingVariant | "subheading" | "table-header" ? {} : V extends "button" ? {
|
|
302
|
+
size?: ButtonSize;
|
|
303
|
+
} : V extends "placeholder" ? {
|
|
304
|
+
size?: PlaceholderSize;
|
|
305
|
+
} : V extends "body" | "caption" ? {
|
|
306
|
+
size?: BodySize;
|
|
307
|
+
} : {});
|
|
308
|
+
declare const Typography: <V extends TypographyVariant = "body">(props: TypographyProps<V>) => react_jsx_runtime.JSX.Element;
|
|
297
309
|
|
|
298
310
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
299
311
|
declare const TooltipCore: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
@@ -516,7 +528,7 @@ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.But
|
|
|
516
528
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
|
|
517
529
|
asChild?: boolean;
|
|
518
530
|
} & {
|
|
519
|
-
size?: ButtonSize | undefined;
|
|
531
|
+
size?: ButtonSize$1 | undefined;
|
|
520
532
|
title?: string;
|
|
521
533
|
} & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
522
534
|
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -657,7 +669,7 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
657
669
|
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
658
670
|
type PaginationLinkProps = {
|
|
659
671
|
isActive?: boolean;
|
|
660
|
-
size?: ButtonSize;
|
|
672
|
+
size?: ButtonSize$1;
|
|
661
673
|
} & React$1.ComponentProps<"a">;
|
|
662
674
|
declare const PaginationLink: {
|
|
663
675
|
({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
@@ -739,4 +751,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
|
|
|
739
751
|
}): react_jsx_runtime.JSX.Element;
|
|
740
752
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
741
753
|
|
|
742
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, ButtonSize, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputPassword, type InputPasswordProps, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };
|
|
754
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, ButtonSize$1 as ButtonSize, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputPassword, type InputPasswordProps, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };
|
package/dist/shadcn/index.js
CHANGED
|
@@ -2948,7 +2948,7 @@ const Fa = (e, t) => {
|
|
|
2948
2948
|
)
|
|
2949
2949
|
] }),
|
|
2950
2950
|
/* @__PURE__ */ u.jsxs(Bt, { justify: "between", className: "al-p-4 al-border-t", children: [
|
|
2951
|
-
/* @__PURE__ */ u.jsxs(pl, { className: "al-leading-5",
|
|
2951
|
+
/* @__PURE__ */ u.jsxs(pl, { size: "sm", className: "al-leading-5", children: [
|
|
2952
2952
|
/* @__PURE__ */ u.jsx("span", { className: "al-font-semibold", children: "Timezone:" }),
|
|
2953
2953
|
" ",
|
|
2954
2954
|
n
|
|
@@ -15,22 +15,13 @@ type Story = StoryObj<typeof meta>;
|
|
|
15
15
|
export const Typography: Story = {
|
|
16
16
|
args: {
|
|
17
17
|
variant: "h1",
|
|
18
|
-
weight: "
|
|
19
|
-
size: "md",
|
|
18
|
+
weight: "semibold",
|
|
20
19
|
children: "Heading 1",
|
|
21
20
|
},
|
|
22
21
|
render: () => (
|
|
23
22
|
<div className="space-y-8">
|
|
24
|
-
{/* Heading 1 Variations */}
|
|
23
|
+
{/* Heading 1 Variations - Only Medium & Semibold */}
|
|
25
24
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
26
|
-
<Component variant="h1" weight="light">
|
|
27
|
-
Heading 1
|
|
28
|
-
<br /> Light
|
|
29
|
-
</Component>
|
|
30
|
-
<Component variant="h1" weight="regular">
|
|
31
|
-
Heading 1
|
|
32
|
-
<br /> Regular
|
|
33
|
-
</Component>
|
|
34
25
|
<Component variant="h1" weight="medium">
|
|
35
26
|
Heading 1 <br />
|
|
36
27
|
Medium
|
|
@@ -39,25 +30,13 @@ export const Typography: Story = {
|
|
|
39
30
|
Heading 1 <br />
|
|
40
31
|
Semibold
|
|
41
32
|
</Component>
|
|
42
|
-
<Component variant="h1" weight="bold">
|
|
43
|
-
Heading 1 <br />
|
|
44
|
-
Bold
|
|
45
|
-
</Component>
|
|
46
33
|
<Component variant="caption" className="text-gray-500">
|
|
47
|
-
|
|
34
|
+
30px / Line height: 38px
|
|
48
35
|
</Component>
|
|
49
36
|
</div>
|
|
50
37
|
|
|
51
|
-
{/* Heading 2 Variations */}
|
|
38
|
+
{/* Heading 2 Variations - Only Medium & Semibold */}
|
|
52
39
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
53
|
-
<Component variant="h2" weight="light">
|
|
54
|
-
Heading 2 <br />
|
|
55
|
-
Light
|
|
56
|
-
</Component>
|
|
57
|
-
<Component variant="h2" weight="regular">
|
|
58
|
-
Heading 2 <br />
|
|
59
|
-
Regular
|
|
60
|
-
</Component>
|
|
61
40
|
<Component variant="h2" weight="medium">
|
|
62
41
|
Heading 2 <br />
|
|
63
42
|
Medium
|
|
@@ -66,25 +45,13 @@ export const Typography: Story = {
|
|
|
66
45
|
Heading 2 <br />
|
|
67
46
|
Semibold
|
|
68
47
|
</Component>
|
|
69
|
-
<Component variant="h2" weight="bold">
|
|
70
|
-
Heading 2 <br />
|
|
71
|
-
Bold
|
|
72
|
-
</Component>
|
|
73
48
|
<Component variant="caption" className="text-gray-500">
|
|
74
49
|
24px / Line height: 32px
|
|
75
50
|
</Component>
|
|
76
51
|
</div>
|
|
77
52
|
|
|
78
|
-
{/* Heading 3 Variations */}
|
|
53
|
+
{/* Heading 3 Variations - Only Medium & Semibold */}
|
|
79
54
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
80
|
-
<Component variant="h3" weight="light">
|
|
81
|
-
Heading 3 <br />
|
|
82
|
-
Light
|
|
83
|
-
</Component>
|
|
84
|
-
<Component variant="h3" weight="regular">
|
|
85
|
-
Heading 3 <br />
|
|
86
|
-
Regular
|
|
87
|
-
</Component>
|
|
88
55
|
<Component variant="h3" weight="medium">
|
|
89
56
|
Heading 3 <br />
|
|
90
57
|
Medium
|
|
@@ -93,25 +60,13 @@ export const Typography: Story = {
|
|
|
93
60
|
Heading 3 <br />
|
|
94
61
|
Semibold
|
|
95
62
|
</Component>
|
|
96
|
-
<Component variant="h3" weight="bold">
|
|
97
|
-
Heading 3 <br />
|
|
98
|
-
Bold
|
|
99
|
-
</Component>
|
|
100
63
|
<Component variant="caption" className="text-gray-500">
|
|
101
|
-
|
|
64
|
+
20px / Line height: 24px
|
|
102
65
|
</Component>
|
|
103
66
|
</div>
|
|
104
67
|
|
|
105
|
-
{/* Heading 4 Variations */}
|
|
68
|
+
{/* Heading 4 Variations - Only Medium & Semibold */}
|
|
106
69
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
107
|
-
<Component variant="h4" weight="light">
|
|
108
|
-
Heading 4 <br />
|
|
109
|
-
Light
|
|
110
|
-
</Component>
|
|
111
|
-
<Component variant="h4" weight="regular">
|
|
112
|
-
Heading 4 <br />
|
|
113
|
-
Regular
|
|
114
|
-
</Component>
|
|
115
70
|
<Component variant="h4" weight="medium">
|
|
116
71
|
Heading 4 <br />
|
|
117
72
|
Medium
|
|
@@ -120,25 +75,13 @@ export const Typography: Story = {
|
|
|
120
75
|
Heading 4 <br />
|
|
121
76
|
Semibold
|
|
122
77
|
</Component>
|
|
123
|
-
<Component variant="h4" weight="bold">
|
|
124
|
-
Heading 4 <br />
|
|
125
|
-
Bold
|
|
126
|
-
</Component>
|
|
127
78
|
<Component variant="caption" className="text-gray-500">
|
|
128
79
|
16px / Line height: 24px
|
|
129
80
|
</Component>
|
|
130
81
|
</div>
|
|
131
82
|
|
|
132
|
-
{/* Subheading Variations */}
|
|
83
|
+
{/* Subheading Variations - Only Medium & Semibold */}
|
|
133
84
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
134
|
-
<Component variant="subheading" weight="light">
|
|
135
|
-
Sub heading <br />
|
|
136
|
-
Light
|
|
137
|
-
</Component>
|
|
138
|
-
<Component variant="subheading" weight="regular">
|
|
139
|
-
Sub heading <br />
|
|
140
|
-
Regular
|
|
141
|
-
</Component>
|
|
142
85
|
<Component variant="subheading" weight="medium">
|
|
143
86
|
Sub heading <br />
|
|
144
87
|
Medium
|
|
@@ -147,56 +90,114 @@ export const Typography: Story = {
|
|
|
147
90
|
Sub heading <br />
|
|
148
91
|
Semibold
|
|
149
92
|
</Component>
|
|
150
|
-
<Component variant="subheading" weight="bold">
|
|
151
|
-
Sub heading <br />
|
|
152
|
-
Bold
|
|
153
|
-
</Component>
|
|
154
93
|
<Component variant="caption" className="text-gray-500">
|
|
155
94
|
14px / Line height: 20px
|
|
156
95
|
</Component>
|
|
157
96
|
</div>
|
|
158
97
|
|
|
159
|
-
{/* Body
|
|
98
|
+
{/* Body Text - Regular Weight */}
|
|
160
99
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
161
|
-
<Component variant="body" size="
|
|
162
|
-
Body
|
|
100
|
+
<Component variant="body" weight="regular" size="lg">
|
|
101
|
+
Body Large <br /> Regular
|
|
163
102
|
</Component>
|
|
164
|
-
<Component variant="body" size="
|
|
165
|
-
Body
|
|
103
|
+
<Component variant="body" weight="regular" size="regular">
|
|
104
|
+
Body Regular <br /> Regular
|
|
166
105
|
</Component>
|
|
167
|
-
<Component variant="body" size="
|
|
168
|
-
Body
|
|
106
|
+
<Component variant="body" weight="regular" size="sm">
|
|
107
|
+
Body Small <br /> Regular
|
|
169
108
|
</Component>
|
|
170
|
-
<Component variant="body" size="
|
|
171
|
-
Body
|
|
109
|
+
<Component variant="body" weight="regular" size="xs">
|
|
110
|
+
Body X-Small <br /> Regular
|
|
172
111
|
</Component>
|
|
173
|
-
<Component
|
|
174
|
-
Body
|
|
112
|
+
<Component weight="regular" size="xxs">
|
|
113
|
+
Body XX-Small <br /> Regular
|
|
175
114
|
</Component>
|
|
176
115
|
<Component variant="caption" className="text-gray-500">
|
|
177
|
-
|
|
116
|
+
18px/24px, 16px/24px, 14px/20px, 12px/18px, 10px/14px
|
|
178
117
|
</Component>
|
|
179
118
|
</div>
|
|
180
119
|
|
|
181
|
-
{/*
|
|
120
|
+
{/* Body Text - Medium Weight */}
|
|
182
121
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
183
|
-
<Component variant="
|
|
184
|
-
|
|
122
|
+
<Component variant="body" weight="medium" size="lg">
|
|
123
|
+
Body Large <br /> Medium
|
|
185
124
|
</Component>
|
|
186
|
-
<Component variant="
|
|
187
|
-
|
|
125
|
+
<Component variant="body" weight="medium" size="regular">
|
|
126
|
+
Body Regular <br /> Medium
|
|
188
127
|
</Component>
|
|
189
|
-
<Component variant="
|
|
190
|
-
|
|
128
|
+
<Component variant="body" weight="medium" size="sm">
|
|
129
|
+
Body Small <br /> Medium
|
|
191
130
|
</Component>
|
|
192
|
-
<Component variant="
|
|
193
|
-
|
|
131
|
+
<Component variant="body" weight="medium" size="xs">
|
|
132
|
+
Body X-Small <br /> Medium
|
|
133
|
+
</Component>
|
|
134
|
+
<Component variant="body" weight="medium" size="xxs">
|
|
135
|
+
Body XX-Small <br /> Medium
|
|
136
|
+
</Component>
|
|
137
|
+
<Component variant="caption" className="text-gray-500">
|
|
138
|
+
For emphasis, key values, important inline text
|
|
139
|
+
</Component>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
{/* Caption - Base Size Only (8px/16px) */}
|
|
143
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
144
|
+
<Component variant="caption">
|
|
145
|
+
Caption <br /> Base Size
|
|
146
|
+
</Component>
|
|
147
|
+
<Component variant="caption" className="text-gray-500">
|
|
148
|
+
8px/16px - For extremely tiny metadata only
|
|
149
|
+
</Component>
|
|
150
|
+
<Component variant="caption" className="text-gray-500">
|
|
151
|
+
Note: For all other sizes, use variant="body"
|
|
152
|
+
</Component>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
{/* Utilities Section Header */}
|
|
156
|
+
<div className="al-border-t-2 al-pt-8 al-mt-8">
|
|
157
|
+
<Component variant="h2" weight="semibold" className="al-mb-4">
|
|
158
|
+
Utility Variants
|
|
159
|
+
</Component>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
{/* Button Text Utility - 3 sizes, fixed Medium weight */}
|
|
163
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
164
|
+
<Component variant="button" size="xs">
|
|
165
|
+
Button XS <br /> (12px/16px)
|
|
166
|
+
</Component>
|
|
167
|
+
<Component variant="button" size="sm">
|
|
168
|
+
Button SM <br /> (14px/20px)
|
|
169
|
+
</Component>
|
|
170
|
+
<Component variant="button" size="md">
|
|
171
|
+
Button MD <br /> (16px/24px)
|
|
172
|
+
</Component>
|
|
173
|
+
<Component variant="caption" className="text-gray-500">
|
|
174
|
+
Button text utility - Fixed Medium weight (500)
|
|
175
|
+
</Component>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
{/* Table Header Utility - Fixed size, 2 weights */}
|
|
179
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
180
|
+
<Component variant="table-header" weight="medium">
|
|
181
|
+
Table Header <br /> Medium
|
|
182
|
+
</Component>
|
|
183
|
+
<Component variant="table-header" weight="semibold">
|
|
184
|
+
Table Header <br /> Semibold
|
|
185
|
+
</Component>
|
|
186
|
+
<Component variant="caption" className="text-gray-500">
|
|
187
|
+
12px/18px - For table column headers
|
|
188
|
+
</Component>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
{/* Placeholder Utility - 2 sizes, fixed Regular weight, auto-italic */}
|
|
192
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
193
|
+
<Component variant="placeholder" size="regular">
|
|
194
|
+
Placeholder Regular <br /> (14px/20px)
|
|
194
195
|
</Component>
|
|
195
|
-
<Component variant="
|
|
196
|
-
|
|
196
|
+
<Component variant="placeholder" size="large">
|
|
197
|
+
Placeholder Large <br /> (16px/24px)
|
|
197
198
|
</Component>
|
|
198
199
|
<Component variant="caption" className="text-gray-500">
|
|
199
|
-
|
|
200
|
+
Italic placeholder text - Fixed Regular weight (400)
|
|
200
201
|
</Component>
|
|
201
202
|
</div>
|
|
202
203
|
</div>
|
|
@@ -2,7 +2,7 @@ import { ReactNode, Dispatch, ComponentType } from 'react';
|
|
|
2
2
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
-
type ChatEventStatus = "idle" | "pending" | "streaming" | "complete" | "error";
|
|
5
|
+
type ChatEventStatus = "idle" | "pending" | "streaming" | "complete" | "error" | "cancelled";
|
|
6
6
|
type ChatEvent = {
|
|
7
7
|
type: "session_created";
|
|
8
8
|
sessionId: string;
|
|
@@ -22,7 +22,8 @@ declare enum LoadingState {
|
|
|
22
22
|
LOADING = "LOADING",
|
|
23
23
|
LOADED = "LOADED",
|
|
24
24
|
ERROR = "ERROR",
|
|
25
|
-
UNINITIALIZED = "UNINITIALIZED"
|
|
25
|
+
UNINITIALIZED = "UNINITIALIZED",
|
|
26
|
+
CANCELLED = "cancelled"
|
|
26
27
|
}
|
|
27
28
|
interface AssistantMeta {
|
|
28
29
|
avatar: string;
|