@altimateai/ui-components 0.0.77-combobox-beta1 → 0.0.77
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 +1 -1
- package/dist/Stack.js +530 -482
- package/dist/ToggleGroup.js +2092 -2079
- package/dist/lineage/index.js +367 -367
- package/dist/main.js +1 -1
- package/dist/shadcn/index.d.ts +33 -14
- package/dist/shadcn/index.js +1 -1
- package/dist/storybook/Typography.stories.tsx +120 -93
- 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,9 +1,9 @@
|
|
|
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';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
|
-
import { ComponentProps, HTMLAttributes,
|
|
6
|
+
import { ComponentProps, HTMLAttributes, ReactNode, SelectHTMLAttributes, ComponentPropsWithoutRef } from 'react';
|
|
7
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
@@ -282,18 +282,37 @@ 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 SemanticVariant = "page-heading" | "section-heading";
|
|
292
|
+
type TypographyVariant = HeadingVariant | "body" | "button" | "table-header" | "placeholder" | "subheading" | "caption" | SemanticVariant;
|
|
293
|
+
type WeightForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "table-header" ? HeadingWeight : V extends "body" | "caption" ? BodyWeight : never;
|
|
294
|
+
type HeadingHTMLAttributes = Omit<React.HTMLAttributes<HTMLHeadingElement>, "children" | "className">;
|
|
295
|
+
type ParagraphHTMLAttributes = Omit<React.HTMLAttributes<HTMLParagraphElement>, "children" | "className">;
|
|
296
|
+
type SpanHTMLAttributes = Omit<React.HTMLAttributes<HTMLSpanElement>, "children" | "className">;
|
|
297
|
+
type HTMLAttributesForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "page-heading" | "section-heading" ? HeadingHTMLAttributes : V extends "body" ? ParagraphHTMLAttributes : SpanHTMLAttributes;
|
|
298
|
+
interface BaseProps {
|
|
290
299
|
children: React.ReactNode;
|
|
291
300
|
className?: string;
|
|
292
|
-
weight?: FontWeight;
|
|
293
|
-
size?: FontSize;
|
|
294
|
-
role?: AriaRole | undefined;
|
|
295
301
|
}
|
|
296
|
-
|
|
302
|
+
type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & HTMLAttributesForVariant<V> & (V extends SemanticVariant ? {
|
|
303
|
+
variant: V;
|
|
304
|
+
} : // Other variants can have weight and optionally size
|
|
305
|
+
{
|
|
306
|
+
variant?: V;
|
|
307
|
+
weight?: WeightForVariant<V>;
|
|
308
|
+
} & (V extends HeadingVariant | "subheading" | "table-header" ? {} : V extends "button" ? {
|
|
309
|
+
size?: ButtonSize;
|
|
310
|
+
} : V extends "placeholder" ? {
|
|
311
|
+
size?: PlaceholderSize;
|
|
312
|
+
} : V extends "body" | "caption" ? {
|
|
313
|
+
size?: BodySize;
|
|
314
|
+
} : {}));
|
|
315
|
+
declare const Typography: <V extends TypographyVariant = "body">(props: TypographyProps<V>) => react_jsx_runtime.JSX.Element;
|
|
297
316
|
|
|
298
317
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
299
318
|
declare const TooltipCore: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
@@ -516,7 +535,7 @@ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.But
|
|
|
516
535
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
|
|
517
536
|
asChild?: boolean;
|
|
518
537
|
} & {
|
|
519
|
-
size?: ButtonSize | undefined;
|
|
538
|
+
size?: ButtonSize$1 | undefined;
|
|
520
539
|
title?: string;
|
|
521
540
|
} & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
522
541
|
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -657,7 +676,7 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
657
676
|
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
658
677
|
type PaginationLinkProps = {
|
|
659
678
|
isActive?: boolean;
|
|
660
|
-
size?: ButtonSize;
|
|
679
|
+
size?: ButtonSize$1;
|
|
661
680
|
} & React$1.ComponentProps<"a">;
|
|
662
681
|
declare const PaginationLink: {
|
|
663
682
|
({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
@@ -739,4 +758,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
|
|
|
739
758
|
}): react_jsx_runtime.JSX.Element;
|
|
740
759
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
741
760
|
|
|
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 };
|
|
761
|
+
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, type BodySize, type BodyWeight, 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, type HeadingWeight, 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, type PlaceholderSize, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SemanticVariant, 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,140 @@ 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
|
|
124
|
+
</Component>
|
|
125
|
+
<Component variant="body" weight="medium" size="regular">
|
|
126
|
+
Body Regular <br /> Medium
|
|
185
127
|
</Component>
|
|
186
|
-
<Component variant="
|
|
187
|
-
|
|
128
|
+
<Component variant="body" weight="medium" size="sm">
|
|
129
|
+
Body Small <br /> Medium
|
|
188
130
|
</Component>
|
|
189
|
-
<Component variant="
|
|
190
|
-
|
|
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
|
|
191
149
|
</Component>
|
|
192
|
-
<Component variant="caption"
|
|
193
|
-
|
|
150
|
+
<Component variant="caption" className="text-gray-500">
|
|
151
|
+
Note: For all other sizes, use variant="body"
|
|
152
|
+
</Component>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
{/* Semantic Variants 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
|
+
Semantic Variants
|
|
159
|
+
</Component>
|
|
160
|
+
<Component variant="caption" className="text-gray-500 al-mb-4 al-block">
|
|
161
|
+
Pre-configured variants for consistent page structure. No weight/size props allowed.
|
|
162
|
+
</Component>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
{/* Page Heading - Fixed H2 Semibold */}
|
|
166
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
167
|
+
<Component variant="page-heading">Page Heading</Component>
|
|
168
|
+
<Component variant="caption" className="text-gray-500">
|
|
169
|
+
H2 + Semibold (fixed) - Use for main page titles
|
|
170
|
+
</Component>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
{/* Section Heading - Fixed H3 Medium */}
|
|
174
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
175
|
+
<Component variant="section-heading">Section Heading</Component>
|
|
176
|
+
<Component variant="caption" className="text-gray-500">
|
|
177
|
+
H3 + Medium (fixed) - Use for section titles within a page
|
|
178
|
+
</Component>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
{/* Utilities Section Header */}
|
|
182
|
+
<div className="al-border-t-2 al-pt-8 al-mt-8">
|
|
183
|
+
<Component variant="h2" weight="semibold" className="al-mb-4">
|
|
184
|
+
Utility Variants
|
|
185
|
+
</Component>
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
{/* Button Text Utility - 3 sizes, fixed Medium weight */}
|
|
189
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
190
|
+
<Component variant="button" size="xs">
|
|
191
|
+
Button XS <br /> (12px/16px)
|
|
192
|
+
</Component>
|
|
193
|
+
<Component variant="button" size="sm">
|
|
194
|
+
Button SM <br /> (14px/20px)
|
|
195
|
+
</Component>
|
|
196
|
+
<Component variant="button" size="md">
|
|
197
|
+
Button MD <br /> (16px/24px)
|
|
198
|
+
</Component>
|
|
199
|
+
<Component variant="caption" className="text-gray-500">
|
|
200
|
+
Button text utility - Fixed Medium weight (500)
|
|
201
|
+
</Component>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
{/* Table Header Utility - Fixed size, 2 weights */}
|
|
205
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
206
|
+
<Component variant="table-header" weight="medium">
|
|
207
|
+
Table Header <br /> Medium
|
|
208
|
+
</Component>
|
|
209
|
+
<Component variant="table-header" weight="semibold">
|
|
210
|
+
Table Header <br /> Semibold
|
|
211
|
+
</Component>
|
|
212
|
+
<Component variant="caption" className="text-gray-500">
|
|
213
|
+
12px/18px - For table column headers
|
|
214
|
+
</Component>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
{/* Placeholder Utility - 2 sizes, fixed Regular weight, auto-italic */}
|
|
218
|
+
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
219
|
+
<Component variant="placeholder" size="regular">
|
|
220
|
+
Placeholder Regular <br /> (14px/20px)
|
|
194
221
|
</Component>
|
|
195
|
-
<Component variant="
|
|
196
|
-
|
|
222
|
+
<Component variant="placeholder" size="large">
|
|
223
|
+
Placeholder Large <br /> (16px/24px)
|
|
197
224
|
</Component>
|
|
198
225
|
<Component variant="caption" className="text-gray-500">
|
|
199
|
-
|
|
226
|
+
Italic placeholder text - Fixed Regular weight (400)
|
|
200
227
|
</Component>
|
|
201
228
|
</div>
|
|
202
229
|
</div>
|