@altimateai/ui-components 0.0.77-beta.1 → 0.0.77-beta.3

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/Stack.js CHANGED
@@ -6911,8 +6911,12 @@ const ue = Gt("", {
6911
6911
  button: "",
6912
6912
  // Button uses size for styling
6913
6913
  "table-header": "al-text-table-header",
6914
- placeholder: ""
6914
+ placeholder: "",
6915
6915
  // Placeholder uses size for styling
6916
+ "page-heading": "al-text-h2",
6917
+ // Semantic variant for page headings (fixed h2 + semibold)
6918
+ "section-heading": "al-text-h3"
6919
+ // Semantic variant for section headings (fixed h3 + semibold)
6916
6920
  },
6917
6921
  weight: {
6918
6922
  regular: "al-font-regular",
@@ -6959,29 +6963,36 @@ const ue = Gt("", {
6959
6963
  caption: "span",
6960
6964
  button: "span",
6961
6965
  "table-header": "span",
6962
- placeholder: "span"
6966
+ placeholder: "span",
6967
+ "page-heading": "h2",
6968
+ "section-heading": "h3"
6963
6969
  }, md = (e) => {
6964
6970
  const { variant: t = "body", children: n, className: r, role: o } = e;
6965
6971
  let s, a;
6966
- if (t === "h1" || t === "h2" || t === "h3" || t === "h4" || t === "subheading")
6967
- s = e.weight ?? "semibold", a = void 0;
6972
+ const i = () => e.weight;
6973
+ if (t === "page-heading")
6974
+ s = "semibold", a = void 0;
6975
+ else if (t === "section-heading")
6976
+ s = "medium", a = void 0;
6977
+ else if (t === "h1" || t === "h2" || t === "h3" || t === "h4" || t === "subheading")
6978
+ s = i() ?? "semibold", a = void 0;
6968
6979
  else if (t === "table-header")
6969
- s = e.weight ?? "medium", a = void 0;
6980
+ s = i() ?? "medium", a = void 0;
6970
6981
  else if (t === "body") {
6971
- const c = e;
6972
- s = c.weight ?? "regular", a = c.size ?? "regular";
6982
+ const u = e;
6983
+ s = u.weight ?? "regular", a = u.size ?? "regular";
6973
6984
  } else if (t === "caption") {
6974
- const c = e;
6975
- s = c.weight ?? "regular", a = c.size;
6985
+ const u = e;
6986
+ s = u.weight ?? "regular", a = u.size;
6976
6987
  } else if (t === "button") {
6977
- const c = e;
6978
- s = "medium", a = c.size ? `button-${c.size}` : "button-sm";
6988
+ const u = e;
6989
+ s = "medium", a = u.size ? `button-${u.size}` : "button-sm";
6979
6990
  } else {
6980
- const c = e;
6981
- s = "regular", a = c.size ? `placeholder-${c.size}` : "placeholder-large";
6991
+ const u = e;
6992
+ s = "regular", a = u.size ? `placeholder-${u.size}` : "placeholder-large";
6982
6993
  }
6983
- const i = Yu[t];
6984
- return /* @__PURE__ */ g.jsx(i, { className: M(ue({ variant: t, weight: s, size: a }), r), role: o, children: n });
6994
+ const c = Yu[t];
6995
+ return /* @__PURE__ */ g.jsx(c, { className: M(ue({ variant: t, weight: s, size: a }), r), role: o, children: n });
6985
6996
  }, gd = H(function({
6986
6997
  children: t,
6987
6998
  wrap: n = !1,
@@ -288,14 +288,18 @@ type BodyWeight = "regular" | "medium";
288
288
  type BodySize = "lg" | "regular" | "sm" | "xs" | "xxs";
289
289
  type ButtonSize = "xs" | "sm" | "md";
290
290
  type PlaceholderSize = "regular" | "large";
291
- type TypographyVariant = HeadingVariant | "body" | "button" | "table-header" | "placeholder" | "subheading" | "caption";
291
+ type SemanticVariant = "page-heading" | "section-heading";
292
+ type TypographyVariant = HeadingVariant | "body" | "button" | "table-header" | "placeholder" | "subheading" | "caption" | SemanticVariant;
292
293
  type WeightForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "table-header" ? HeadingWeight : V extends "body" | "caption" ? BodyWeight : never;
293
294
  interface BaseProps {
294
295
  children: React.ReactNode;
295
296
  className?: string;
296
297
  role?: AriaRole | undefined;
297
298
  }
298
- type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & {
299
+ type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & (V extends SemanticVariant ? {
300
+ variant: V;
301
+ } : // Other variants can have weight and optionally size
302
+ {
299
303
  variant?: V;
300
304
  weight?: WeightForVariant<V>;
301
305
  } & (V extends HeadingVariant | "subheading" | "table-header" ? {} : V extends "button" ? {
@@ -304,7 +308,7 @@ type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & {
304
308
  size?: PlaceholderSize;
305
309
  } : V extends "body" | "caption" ? {
306
310
  size?: BodySize;
307
- } : {});
311
+ } : {}));
308
312
  declare const Typography: <V extends TypographyVariant = "body">(props: TypographyProps<V>) => react_jsx_runtime.JSX.Element;
309
313
 
310
314
  declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
@@ -751,4 +755,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
751
755
  }): react_jsx_runtime.JSX.Element;
752
756
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
753
757
 
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 };
758
+ 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 };
@@ -152,6 +152,32 @@ export const Typography: Story = {
152
152
  </Component>
153
153
  </div>
154
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
+
155
181
  {/* Utilities Section Header */}
156
182
  <div className="al-border-t-2 al-pt-8 al-mt-8">
157
183
  <Component variant="h2" weight="semibold" className="al-mb-4">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.77-beta.1",
3
+ "version": "0.0.77-beta.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"