@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-combobox-beta1
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 +482 -530
- package/dist/ToggleGroup.js +2079 -2092
- package/dist/lineage/index.js +367 -367
- package/dist/main.js +1 -1
- package/dist/shadcn/index.d.ts +14 -33
- package/dist/shadcn/index.js +1 -1
- package/dist/storybook/Typography.stories.tsx +93 -120
- 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, { children: e.description })
|
|
4499
|
+
/* @__PURE__ */ h.jsx(ft, { variant: "body", 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
|
|
1
|
+
import { a as Button, B as ButtonProps, b as ButtonSize } 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, ReactNode, SelectHTMLAttributes, ComponentPropsWithoutRef } from 'react';
|
|
6
|
+
import { ComponentProps, HTMLAttributes, AriaRole, 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,37 +282,18 @@ 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
|
-
|
|
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 {
|
|
285
|
+
type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "subheading" | "body" | "caption";
|
|
286
|
+
type FontWeight = "light" | "regular" | "medium" | "semibold" | "bold";
|
|
287
|
+
type FontSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
288
|
+
interface TypographyProps {
|
|
289
|
+
variant?: TypographyVariant;
|
|
299
290
|
children: React.ReactNode;
|
|
300
291
|
className?: string;
|
|
292
|
+
weight?: FontWeight;
|
|
293
|
+
size?: FontSize;
|
|
294
|
+
role?: AriaRole | undefined;
|
|
301
295
|
}
|
|
302
|
-
|
|
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;
|
|
296
|
+
declare const Typography: ({ variant, children, className, weight, size, role, }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
316
297
|
|
|
317
298
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
318
299
|
declare const TooltipCore: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
@@ -535,7 +516,7 @@ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.But
|
|
|
535
516
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
|
|
536
517
|
asChild?: boolean;
|
|
537
518
|
} & {
|
|
538
|
-
size?: ButtonSize
|
|
519
|
+
size?: ButtonSize | undefined;
|
|
539
520
|
title?: string;
|
|
540
521
|
} & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
541
522
|
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -676,7 +657,7 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
676
657
|
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
677
658
|
type PaginationLinkProps = {
|
|
678
659
|
isActive?: boolean;
|
|
679
|
-
size?: ButtonSize
|
|
660
|
+
size?: ButtonSize;
|
|
680
661
|
} & React$1.ComponentProps<"a">;
|
|
681
662
|
declare const PaginationLink: {
|
|
682
663
|
({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
@@ -758,4 +739,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
|
|
|
758
739
|
}): react_jsx_runtime.JSX.Element;
|
|
759
740
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
760
741
|
|
|
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,
|
|
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 };
|
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, {
|
|
2951
|
+
/* @__PURE__ */ u.jsxs(pl, { className: "al-leading-5", size: "sm", children: [
|
|
2952
2952
|
/* @__PURE__ */ u.jsx("span", { className: "al-font-semibold", children: "Timezone:" }),
|
|
2953
2953
|
" ",
|
|
2954
2954
|
n
|
|
@@ -15,13 +15,22 @@ type Story = StoryObj<typeof meta>;
|
|
|
15
15
|
export const Typography: Story = {
|
|
16
16
|
args: {
|
|
17
17
|
variant: "h1",
|
|
18
|
-
weight: "
|
|
18
|
+
weight: "regular",
|
|
19
|
+
size: "md",
|
|
19
20
|
children: "Heading 1",
|
|
20
21
|
},
|
|
21
22
|
render: () => (
|
|
22
23
|
<div className="space-y-8">
|
|
23
|
-
{/* Heading 1 Variations
|
|
24
|
+
{/* Heading 1 Variations */}
|
|
24
25
|
<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>
|
|
25
34
|
<Component variant="h1" weight="medium">
|
|
26
35
|
Heading 1 <br />
|
|
27
36
|
Medium
|
|
@@ -30,13 +39,25 @@ export const Typography: Story = {
|
|
|
30
39
|
Heading 1 <br />
|
|
31
40
|
Semibold
|
|
32
41
|
</Component>
|
|
42
|
+
<Component variant="h1" weight="bold">
|
|
43
|
+
Heading 1 <br />
|
|
44
|
+
Bold
|
|
45
|
+
</Component>
|
|
33
46
|
<Component variant="caption" className="text-gray-500">
|
|
34
|
-
|
|
47
|
+
32px / Line height: 32px
|
|
35
48
|
</Component>
|
|
36
49
|
</div>
|
|
37
50
|
|
|
38
|
-
{/* Heading 2 Variations
|
|
51
|
+
{/* Heading 2 Variations */}
|
|
39
52
|
<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>
|
|
40
61
|
<Component variant="h2" weight="medium">
|
|
41
62
|
Heading 2 <br />
|
|
42
63
|
Medium
|
|
@@ -45,13 +66,25 @@ export const Typography: Story = {
|
|
|
45
66
|
Heading 2 <br />
|
|
46
67
|
Semibold
|
|
47
68
|
</Component>
|
|
69
|
+
<Component variant="h2" weight="bold">
|
|
70
|
+
Heading 2 <br />
|
|
71
|
+
Bold
|
|
72
|
+
</Component>
|
|
48
73
|
<Component variant="caption" className="text-gray-500">
|
|
49
74
|
24px / Line height: 32px
|
|
50
75
|
</Component>
|
|
51
76
|
</div>
|
|
52
77
|
|
|
53
|
-
{/* Heading 3 Variations
|
|
78
|
+
{/* Heading 3 Variations */}
|
|
54
79
|
<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>
|
|
55
88
|
<Component variant="h3" weight="medium">
|
|
56
89
|
Heading 3 <br />
|
|
57
90
|
Medium
|
|
@@ -60,13 +93,25 @@ export const Typography: Story = {
|
|
|
60
93
|
Heading 3 <br />
|
|
61
94
|
Semibold
|
|
62
95
|
</Component>
|
|
96
|
+
<Component variant="h3" weight="bold">
|
|
97
|
+
Heading 3 <br />
|
|
98
|
+
Bold
|
|
99
|
+
</Component>
|
|
63
100
|
<Component variant="caption" className="text-gray-500">
|
|
64
|
-
|
|
101
|
+
18px / Line height: 26px
|
|
65
102
|
</Component>
|
|
66
103
|
</div>
|
|
67
104
|
|
|
68
|
-
{/* Heading 4 Variations
|
|
105
|
+
{/* Heading 4 Variations */}
|
|
69
106
|
<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>
|
|
70
115
|
<Component variant="h4" weight="medium">
|
|
71
116
|
Heading 4 <br />
|
|
72
117
|
Medium
|
|
@@ -75,13 +120,25 @@ export const Typography: Story = {
|
|
|
75
120
|
Heading 4 <br />
|
|
76
121
|
Semibold
|
|
77
122
|
</Component>
|
|
123
|
+
<Component variant="h4" weight="bold">
|
|
124
|
+
Heading 4 <br />
|
|
125
|
+
Bold
|
|
126
|
+
</Component>
|
|
78
127
|
<Component variant="caption" className="text-gray-500">
|
|
79
128
|
16px / Line height: 24px
|
|
80
129
|
</Component>
|
|
81
130
|
</div>
|
|
82
131
|
|
|
83
|
-
{/* Subheading Variations
|
|
132
|
+
{/* Subheading Variations */}
|
|
84
133
|
<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>
|
|
85
142
|
<Component variant="subheading" weight="medium">
|
|
86
143
|
Sub heading <br />
|
|
87
144
|
Medium
|
|
@@ -90,140 +147,56 @@ export const Typography: Story = {
|
|
|
90
147
|
Sub heading <br />
|
|
91
148
|
Semibold
|
|
92
149
|
</Component>
|
|
93
|
-
<Component variant="
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
{/* Body Text - Regular Weight */}
|
|
99
|
-
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
100
|
-
<Component variant="body" weight="regular" size="lg">
|
|
101
|
-
Body Large <br /> Regular
|
|
102
|
-
</Component>
|
|
103
|
-
<Component variant="body" weight="regular" size="regular">
|
|
104
|
-
Body Regular <br /> Regular
|
|
105
|
-
</Component>
|
|
106
|
-
<Component variant="body" weight="regular" size="sm">
|
|
107
|
-
Body Small <br /> Regular
|
|
108
|
-
</Component>
|
|
109
|
-
<Component variant="body" weight="regular" size="xs">
|
|
110
|
-
Body X-Small <br /> Regular
|
|
111
|
-
</Component>
|
|
112
|
-
<Component weight="regular" size="xxs">
|
|
113
|
-
Body XX-Small <br /> Regular
|
|
114
|
-
</Component>
|
|
115
|
-
<Component variant="caption" className="text-gray-500">
|
|
116
|
-
18px/24px, 16px/24px, 14px/20px, 12px/18px, 10px/14px
|
|
117
|
-
</Component>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
{/* Body Text - Medium Weight */}
|
|
121
|
-
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
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
|
|
127
|
-
</Component>
|
|
128
|
-
<Component variant="body" weight="medium" size="sm">
|
|
129
|
-
Body Small <br /> Medium
|
|
130
|
-
</Component>
|
|
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
|
-
{/* 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.
|
|
150
|
+
<Component variant="subheading" weight="bold">
|
|
151
|
+
Sub heading <br />
|
|
152
|
+
Bold
|
|
162
153
|
</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
154
|
<Component variant="caption" className="text-gray-500">
|
|
169
|
-
|
|
155
|
+
14px / Line height: 20px
|
|
170
156
|
</Component>
|
|
171
157
|
</div>
|
|
172
158
|
|
|
173
|
-
{/*
|
|
159
|
+
{/* Body/Paragraph Example */}
|
|
174
160
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
175
|
-
<Component variant="
|
|
176
|
-
|
|
177
|
-
H3 + Medium (fixed) - Use for section titles within a page
|
|
161
|
+
<Component variant="body" size="xs">
|
|
162
|
+
Body XS <br /> Regular
|
|
178
163
|
</Component>
|
|
179
|
-
|
|
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
|
|
164
|
+
<Component variant="body" size="sm">
|
|
165
|
+
Body SM <br /> Regular
|
|
185
166
|
</Component>
|
|
186
|
-
|
|
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)
|
|
167
|
+
<Component variant="body" size="md">
|
|
168
|
+
Body MD <br /> Regular
|
|
192
169
|
</Component>
|
|
193
|
-
<Component variant="
|
|
194
|
-
|
|
170
|
+
<Component variant="body" size="lg">
|
|
171
|
+
Body LG <br /> Regular
|
|
195
172
|
</Component>
|
|
196
|
-
<Component variant="
|
|
197
|
-
|
|
173
|
+
<Component variant="body" size="xl">
|
|
174
|
+
Body XL <br /> Regular
|
|
198
175
|
</Component>
|
|
199
176
|
<Component variant="caption" className="text-gray-500">
|
|
200
|
-
|
|
177
|
+
14px, 10px, 8px | Line height: 18px, 16px, 14px
|
|
201
178
|
</Component>
|
|
202
179
|
</div>
|
|
203
180
|
|
|
204
|
-
{/*
|
|
181
|
+
{/* Caption Example */}
|
|
205
182
|
<div className="al-border al-flex al-justify-between al-p-4 al-my-2">
|
|
206
|
-
<Component variant="
|
|
207
|
-
|
|
183
|
+
<Component variant="caption" size="xs">
|
|
184
|
+
Caption XS <br /> Regular
|
|
208
185
|
</Component>
|
|
209
|
-
<Component variant="
|
|
210
|
-
|
|
186
|
+
<Component variant="caption" size="sm">
|
|
187
|
+
Caption SM <br /> Regular
|
|
211
188
|
</Component>
|
|
212
|
-
<Component variant="caption"
|
|
213
|
-
|
|
189
|
+
<Component variant="caption" weight="medium" size="sm">
|
|
190
|
+
Caption SM <br /> Medium
|
|
214
191
|
</Component>
|
|
215
|
-
|
|
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)
|
|
192
|
+
<Component variant="caption" weight="medium" size="md">
|
|
193
|
+
Caption MD <br /> Medium
|
|
221
194
|
</Component>
|
|
222
|
-
<Component variant="
|
|
223
|
-
|
|
195
|
+
<Component variant="caption" weight="medium" size="lg">
|
|
196
|
+
Caption LG <br /> Medium
|
|
224
197
|
</Component>
|
|
225
198
|
<Component variant="caption" className="text-gray-500">
|
|
226
|
-
|
|
199
|
+
14px, 10px | Line height: 18px, 16px
|
|
227
200
|
</Component>
|
|
228
201
|
</div>
|
|
229
202
|
</div>
|