@financinha/ui 0.11.0 → 0.12.0

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/index.d.cts CHANGED
@@ -583,6 +583,7 @@ type MetricCardProps = Omit<React$1.ComponentProps<"div">, "children"> & {
583
583
  declare function MetricCard({ label, value, icon, tone, trend, comparison, className, ...props }: MetricCardProps): React$1.JSX.Element;
584
584
 
585
585
  type InsightTone = "success" | "warning" | "tip";
586
+ type InsightSize = "default" | "sm";
586
587
  type InsightCardProps = Omit<React$1.ComponentProps<"div">, "title"> & {
587
588
  /** O título do card, como "Principais insights da semana". Vem sempre com o brilho da IA antes. */
588
589
  title: React$1.ReactNode;
@@ -592,12 +593,21 @@ type InsightCardProps = Omit<React$1.ComponentProps<"div">, "title"> & {
592
593
  action?: React$1.ReactNode;
593
594
  /** Linha embaixo do cabeçalho. Use quando o conteúdo é uma lista de `InsightItem`. */
594
595
  divider?: boolean;
596
+ /** Linha entre os `InsightItem`. Padrão: sim. */
597
+ divided?: boolean;
598
+ /**
599
+ * `default`: título de 16 px e ícone do insight de 40 px.
600
+ * `sm`: denso, como os outros cards da Home (Card compacto). Títulos de 14 px, cabeçalho de 24 px alinhado ao topo,
601
+ * 16 px até o conteúdo, ícone do insight de 32 px e 8 px entre o ícone e o texto. A ação do cabeçalho usa
602
+ * `size="icon-xs"` (24 px), para não mudar a altura.
603
+ */
604
+ size?: InsightSize;
595
605
  };
596
606
  /**
597
607
  * Card da IA: superfície lilás (o único card roxo do DS; o Card comum não tem essa cor), com o brilho (Sparkles) e o título no topo.
598
608
  * O conteúdo é livre: um texto curto, seções com listas ou uma lista de `InsightItem`.
599
609
  */
600
- declare function InsightCard({ title, meta, action, divider, className, children, ...props }: InsightCardProps): React$1.JSX.Element;
610
+ declare function InsightCard({ title, meta, action, divider, divided, size, className, children, ...props }: InsightCardProps): React$1.JSX.Element;
601
611
  type InsightItemProps = Omit<React$1.ComponentProps<"div">, "title"> & {
602
612
  /** O assunto: verde (o que foi bom), amarelo (atenção) ou lilás (dica da Financinha). */
603
613
  tone?: InsightTone;
@@ -887,4 +897,4 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
887
897
  isActive?: boolean;
888
898
  }): React$1.JSX.Element;
889
899
 
890
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertModal, AlertModalAction, AlertModalCancel, AlertModalContent, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPanel, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertTitle, Amount, type AmountProps, type AmountTone, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, type BadgeVariant, BankAvatar, type BankAvatarOwner, type BankAvatarProps, type BankAvatarStatus, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardBrand, type CardBrandProps, CardContent, CardDescription, CardFooter, CardHeader, CardIcon, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorScheme, DangerZoneCard, type DangerZoneCardProps, DangerZoneItem, type DangerZoneItemProps, DatePicker, type DatePickerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, type FileUploadRejection, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InsightCard, type InsightCardProps, InsightItem, type InsightItemProps, type InsightTone, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, Label, Link, type LinkProps, MetricCard, type MetricCardProps, type MetricCardTone, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, Multiselect, type MultiselectOption, type MultiselectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverConfirm, type PopoverConfirmProps, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioCard, type RadioCardProps, RadioGroup, RadioGroupCard, RadioGroupItem, ScrollArea, ScrollBar, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cardVariants, headingStyle, itemVariants, modalContentVariants, navigationMenuTriggerStyle, tagVariants, textStyle, toggleVariants, useColorScheme, useIsMobile, useSidebar };
900
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertModal, AlertModalAction, AlertModalCancel, AlertModalContent, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPanel, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertTitle, Amount, type AmountProps, type AmountTone, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, type BadgeVariant, BankAvatar, type BankAvatarOwner, type BankAvatarProps, type BankAvatarStatus, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardBrand, type CardBrandProps, CardContent, CardDescription, CardFooter, CardHeader, CardIcon, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorScheme, DangerZoneCard, type DangerZoneCardProps, DangerZoneItem, type DangerZoneItemProps, DatePicker, type DatePickerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, type FileUploadRejection, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InsightCard, type InsightCardProps, InsightItem, type InsightItemProps, type InsightSize, type InsightTone, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, Label, Link, type LinkProps, MetricCard, type MetricCardProps, type MetricCardTone, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, Multiselect, type MultiselectOption, type MultiselectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverConfirm, type PopoverConfirmProps, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioCard, type RadioCardProps, RadioGroup, RadioGroupCard, RadioGroupItem, ScrollArea, ScrollBar, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cardVariants, headingStyle, itemVariants, modalContentVariants, navigationMenuTriggerStyle, tagVariants, textStyle, toggleVariants, useColorScheme, useIsMobile, useSidebar };
package/dist/index.d.ts CHANGED
@@ -583,6 +583,7 @@ type MetricCardProps = Omit<React$1.ComponentProps<"div">, "children"> & {
583
583
  declare function MetricCard({ label, value, icon, tone, trend, comparison, className, ...props }: MetricCardProps): React$1.JSX.Element;
584
584
 
585
585
  type InsightTone = "success" | "warning" | "tip";
586
+ type InsightSize = "default" | "sm";
586
587
  type InsightCardProps = Omit<React$1.ComponentProps<"div">, "title"> & {
587
588
  /** O título do card, como "Principais insights da semana". Vem sempre com o brilho da IA antes. */
588
589
  title: React$1.ReactNode;
@@ -592,12 +593,21 @@ type InsightCardProps = Omit<React$1.ComponentProps<"div">, "title"> & {
592
593
  action?: React$1.ReactNode;
593
594
  /** Linha embaixo do cabeçalho. Use quando o conteúdo é uma lista de `InsightItem`. */
594
595
  divider?: boolean;
596
+ /** Linha entre os `InsightItem`. Padrão: sim. */
597
+ divided?: boolean;
598
+ /**
599
+ * `default`: título de 16 px e ícone do insight de 40 px.
600
+ * `sm`: denso, como os outros cards da Home (Card compacto). Títulos de 14 px, cabeçalho de 24 px alinhado ao topo,
601
+ * 16 px até o conteúdo, ícone do insight de 32 px e 8 px entre o ícone e o texto. A ação do cabeçalho usa
602
+ * `size="icon-xs"` (24 px), para não mudar a altura.
603
+ */
604
+ size?: InsightSize;
595
605
  };
596
606
  /**
597
607
  * Card da IA: superfície lilás (o único card roxo do DS; o Card comum não tem essa cor), com o brilho (Sparkles) e o título no topo.
598
608
  * O conteúdo é livre: um texto curto, seções com listas ou uma lista de `InsightItem`.
599
609
  */
600
- declare function InsightCard({ title, meta, action, divider, className, children, ...props }: InsightCardProps): React$1.JSX.Element;
610
+ declare function InsightCard({ title, meta, action, divider, divided, size, className, children, ...props }: InsightCardProps): React$1.JSX.Element;
601
611
  type InsightItemProps = Omit<React$1.ComponentProps<"div">, "title"> & {
602
612
  /** O assunto: verde (o que foi bom), amarelo (atenção) ou lilás (dica da Financinha). */
603
613
  tone?: InsightTone;
@@ -887,4 +897,4 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
887
897
  isActive?: boolean;
888
898
  }): React$1.JSX.Element;
889
899
 
890
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertModal, AlertModalAction, AlertModalCancel, AlertModalContent, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPanel, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertTitle, Amount, type AmountProps, type AmountTone, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, type BadgeVariant, BankAvatar, type BankAvatarOwner, type BankAvatarProps, type BankAvatarStatus, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardBrand, type CardBrandProps, CardContent, CardDescription, CardFooter, CardHeader, CardIcon, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorScheme, DangerZoneCard, type DangerZoneCardProps, DangerZoneItem, type DangerZoneItemProps, DatePicker, type DatePickerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, type FileUploadRejection, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InsightCard, type InsightCardProps, InsightItem, type InsightItemProps, type InsightTone, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, Label, Link, type LinkProps, MetricCard, type MetricCardProps, type MetricCardTone, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, Multiselect, type MultiselectOption, type MultiselectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverConfirm, type PopoverConfirmProps, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioCard, type RadioCardProps, RadioGroup, RadioGroupCard, RadioGroupItem, ScrollArea, ScrollBar, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cardVariants, headingStyle, itemVariants, modalContentVariants, navigationMenuTriggerStyle, tagVariants, textStyle, toggleVariants, useColorScheme, useIsMobile, useSidebar };
900
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertModal, AlertModalAction, AlertModalCancel, AlertModalContent, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPanel, AlertModalPortal, AlertModalTitle, AlertModalTrigger, AlertTitle, Amount, type AmountProps, type AmountTone, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, type BadgeVariant, BankAvatar, type BankAvatarOwner, type BankAvatarProps, type BankAvatarStatus, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardBrand, type CardBrandProps, CardContent, CardDescription, CardFooter, CardHeader, CardIcon, CardTitle, Checkbox, CheckboxCard, type CheckboxCardProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorScheme, DangerZoneCard, type DangerZoneCardProps, DangerZoneItem, type DangerZoneItemProps, DatePicker, type DatePickerProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, type FileUploadRejection, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InsightCard, type InsightCardProps, InsightItem, type InsightItemProps, type InsightSize, type InsightTone, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, Label, Link, type LinkProps, MetricCard, type MetricCardProps, type MetricCardTone, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, Multiselect, type MultiselectOption, type MultiselectProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverConfirm, type PopoverConfirmProps, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioCard, type RadioCardProps, RadioGroup, RadioGroupCard, RadioGroupItem, ScrollArea, ScrollBar, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buttonVariants, cardVariants, headingStyle, itemVariants, modalContentVariants, navigationMenuTriggerStyle, tagVariants, textStyle, toggleVariants, useColorScheme, useIsMobile, useSidebar };
package/dist/index.js CHANGED
@@ -3232,7 +3232,7 @@ function MetricCard({
3232
3232
  }
3233
3233
 
3234
3234
  // src/components/patterns/insight-card.tsx
3235
- import "react";
3235
+ import * as React37 from "react";
3236
3236
  import { cn as cn37 } from "cn";
3237
3237
  import { SparklesIcon } from "lucide-react";
3238
3238
  import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
@@ -3246,13 +3246,31 @@ var TITLE_TONE = {
3246
3246
  warning: "text-warning-500 dark:text-warning-300",
3247
3247
  tip: "text-primary-500 dark:text-primary-300"
3248
3248
  };
3249
- function InsightCard({ title, meta, action, divider = false, className, children, ...props }) {
3249
+ var InsightCardContext = React37.createContext({ size: "default", divided: true });
3250
+ function InsightCard({
3251
+ title,
3252
+ meta,
3253
+ action,
3254
+ divider = false,
3255
+ divided = true,
3256
+ size = "default",
3257
+ className,
3258
+ children,
3259
+ ...props
3260
+ }) {
3261
+ const sm = size === "sm";
3262
+ const contexto = React37.useMemo(() => ({ size, divided }), [size, divided]);
3250
3263
  return /* @__PURE__ */ jsxs20(
3251
3264
  Card,
3252
3265
  {
3253
3266
  "data-slot": "insight-card",
3267
+ "data-size": size,
3254
3268
  padding: "compact",
3255
- className: cn37("gap-3 border-primary-200 bg-primary-50 dark:border-primary-700 dark:bg-primary-800/40", className),
3269
+ className: cn37(
3270
+ "border-primary-200 bg-primary-50 dark:border-primary-700 dark:bg-primary-800/40",
3271
+ sm ? "gap-4" : "gap-3",
3272
+ className
3273
+ ),
3256
3274
  ...props,
3257
3275
  children: [
3258
3276
  /* @__PURE__ */ jsxs20(
@@ -3260,12 +3278,14 @@ function InsightCard({ title, meta, action, divider = false, className, children
3260
3278
  {
3261
3279
  "data-slot": "insight-card-header",
3262
3280
  className: cn37(
3263
- "flex items-center gap-2 px-(--card-spacing)",
3281
+ "flex gap-2 px-(--card-spacing)",
3282
+ // sm: 24 px de altura (a do botão icon-xs), alinhado ao topo, como o cabeçalho do Card compacto.
3283
+ sm ? "min-h-6 items-start" : "items-center",
3264
3284
  divider && "border-b border-inherit pb-(--card-spacing)"
3265
3285
  ),
3266
3286
  children: [
3267
- /* @__PURE__ */ jsx36(SparklesIcon, { "aria-hidden": true, className: "size-5 shrink-0 text-primary-500 dark:text-primary-300" }),
3268
- /* @__PURE__ */ jsxs20("p", { className: "text-base font-semibold text-foreground", children: [
3287
+ /* @__PURE__ */ jsx36("span", { "aria-hidden": true, className: cn37("flex shrink-0 items-center", sm && "h-6"), children: /* @__PURE__ */ jsx36(SparklesIcon, { className: "size-5 text-primary-500 dark:text-primary-300" }) }),
3288
+ /* @__PURE__ */ jsxs20("p", { className: cn37("font-semibold text-foreground", sm ? "text-sm leading-6" : "text-base"), children: [
3269
3289
  title,
3270
3290
  meta ? /* @__PURE__ */ jsxs20("span", { className: "font-normal text-muted-foreground", children: [
3271
3291
  " \xB7 ",
@@ -3281,7 +3301,7 @@ function InsightCard({ title, meta, action, divider = false, className, children
3281
3301
  {
3282
3302
  "data-slot": "insight-card-content",
3283
3303
  className: "flex flex-col gap-3 px-(--card-spacing) text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",
3284
- children
3304
+ children: /* @__PURE__ */ jsx36(InsightCardContext.Provider, { value: contexto, children })
3285
3305
  }
3286
3306
  )
3287
3307
  ]
@@ -3289,12 +3309,16 @@ function InsightCard({ title, meta, action, divider = false, className, children
3289
3309
  );
3290
3310
  }
3291
3311
  function InsightItem({ tone = "tip", icon, title, className, children, ...props }) {
3312
+ const { size, divided } = React37.useContext(InsightCardContext);
3313
+ const sm = size === "sm";
3292
3314
  return /* @__PURE__ */ jsxs20(
3293
3315
  "div",
3294
3316
  {
3295
3317
  "data-slot": "insight-item",
3296
3318
  className: cn37(
3297
- "flex gap-3 border-b border-primary-200 pb-3 last:border-0 last:pb-0 dark:border-primary-700",
3319
+ "flex",
3320
+ sm ? "gap-2" : "gap-3",
3321
+ divided && "border-b border-primary-200 pb-3 last:border-0 last:pb-0 dark:border-primary-700",
3298
3322
  className
3299
3323
  ),
3300
3324
  ...props,
@@ -3303,12 +3327,16 @@ function InsightItem({ tone = "tip", icon, title, className, children, ...props
3303
3327
  "span",
3304
3328
  {
3305
3329
  "aria-hidden": true,
3306
- className: cn37("flex size-10 shrink-0 items-center justify-center rounded-lg [&>svg]:size-5", ICON_TONE2[tone]),
3330
+ className: cn37(
3331
+ "flex shrink-0 items-center justify-center",
3332
+ sm ? "size-8 rounded-md [&>svg]:size-4" : "size-10 rounded-lg [&>svg]:size-5",
3333
+ ICON_TONE2[tone]
3334
+ ),
3307
3335
  children: icon
3308
3336
  }
3309
3337
  ) : null,
3310
3338
  /* @__PURE__ */ jsxs20("div", { className: "flex flex-col gap-1", children: [
3311
- /* @__PURE__ */ jsx36("p", { className: cn37("text-base font-semibold", TITLE_TONE[tone]), children: title }),
3339
+ /* @__PURE__ */ jsx36("p", { className: cn37("font-semibold", sm ? "text-sm" : "text-base", TITLE_TONE[tone]), children: title }),
3312
3340
  /* @__PURE__ */ jsx36("div", { children })
3313
3341
  ] })
3314
3342
  ]