@bigbinary/neeto-atoms 1.0.1 → 1.0.2
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/cjs/index.css +1 -1
- package/dist/cjs/index.js +86 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/Typography.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +85 -12
- package/dist/index.js.map +1 -1
- package/dist/shadcn/components/typography.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -53,5 +53,6 @@ export * from "./components/Textarea";
|
|
|
53
53
|
export * from "./components/Toggle";
|
|
54
54
|
export * from "./components/ToggleGroup";
|
|
55
55
|
export * from "./components/Tooltip";
|
|
56
|
+
export * from "./components/Typography";
|
|
56
57
|
export * from "./shadcn/hooks/use-mobile";
|
|
57
58
|
export * from "./shadcn/lib/utils";
|
package/dist/index.js
CHANGED
|
@@ -61266,11 +61266,11 @@ function SidebarProvider$1({ defaultOpen = true, open: openProp, onOpenChange: s
|
|
|
61266
61266
|
setOpenMobile,
|
|
61267
61267
|
toggleSidebar,
|
|
61268
61268
|
}), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
61269
|
-
return (jsx(SidebarContext.Provider, { value: contextValue, children: jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
61270
|
-
|
|
61271
|
-
|
|
61272
|
-
|
|
61273
|
-
|
|
61269
|
+
return (jsx(SidebarContext.Provider, { value: contextValue, children: jsx(TooltipProvider$1, { delayDuration: 0, children: jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
61270
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
61271
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
61272
|
+
...style,
|
|
61273
|
+
}, className: cn$1("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className), ...props, children: children }) }) }));
|
|
61274
61274
|
}
|
|
61275
61275
|
function Sidebar$1({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, dir, ...props }) {
|
|
61276
61276
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
@@ -61288,7 +61288,7 @@ function Sidebar$1({ side = "left", variant = "sidebar", collapsible = "offcanva
|
|
|
61288
61288
|
// Adjust the padding for floating and inset variants.
|
|
61289
61289
|
variant === "floating" || variant === "inset"
|
|
61290
61290
|
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
61291
|
-
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", className), ...props, children: jsx("div", { "data-sidebar": "sidebar", "data-slot": "sidebar-inner", className: "flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:
|
|
61291
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", className), ...props, children: jsx("div", { "data-sidebar": "sidebar", "data-slot": "sidebar-inner", className: "flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm", children: children }) })] }));
|
|
61292
61292
|
}
|
|
61293
61293
|
function SidebarTrigger$1({ className, onClick, ...props }) {
|
|
61294
61294
|
const { toggleSidebar } = useSidebar();
|
|
@@ -61299,7 +61299,7 @@ function SidebarTrigger$1({ className, onClick, ...props }) {
|
|
|
61299
61299
|
}
|
|
61300
61300
|
function SidebarRail$1({ className, ...props }) {
|
|
61301
61301
|
const { toggleSidebar } = useSidebar();
|
|
61302
|
-
return (jsx("button", { "data-sidebar": "rail", "data-slot": "sidebar-rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn$1("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex
|
|
61302
|
+
return (jsx("button", { "data-sidebar": "rail", "data-slot": "sidebar-rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn$1("cn-sidebar-rail absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className), ...props }));
|
|
61303
61303
|
}
|
|
61304
61304
|
function SidebarInset$1({ className, ...props }) {
|
|
61305
61305
|
return (jsx("main", { "data-slot": "sidebar-inset", className: cn$1("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2", className), ...props }));
|
|
@@ -61317,7 +61317,7 @@ function SidebarSeparator$1({ className, ...props }) {
|
|
|
61317
61317
|
return (jsx(Separator$2, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn$1("mx-2 w-auto bg-sidebar-border", className), ...props }));
|
|
61318
61318
|
}
|
|
61319
61319
|
function SidebarContent$1({ className, ...props }) {
|
|
61320
|
-
return (jsx("div", { "data-slot": "sidebar-content", "data-sidebar": "content", className: cn$1("no-scrollbar flex min-h-0 flex-1 flex-col gap-
|
|
61320
|
+
return (jsx("div", { "data-slot": "sidebar-content", "data-sidebar": "content", className: cn$1("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className), ...props }));
|
|
61321
61321
|
}
|
|
61322
61322
|
function SidebarGroup$1({ className, ...props }) {
|
|
61323
61323
|
return (jsx("div", { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn$1("relative flex w-full min-w-0 flex-col p-2", className), ...props }));
|
|
@@ -61334,7 +61334,7 @@ function SidebarGroupContent$1({ className, ...props }) {
|
|
|
61334
61334
|
return (jsx("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: cn$1("w-full text-sm", className), ...props }));
|
|
61335
61335
|
}
|
|
61336
61336
|
function SidebarMenu$1({ className, ...props }) {
|
|
61337
|
-
return (jsx("ul", { "data-slot": "sidebar-menu", "data-sidebar": "menu", className: cn$1("flex w-full min-w-0 flex-col gap-
|
|
61337
|
+
return (jsx("ul", { "data-slot": "sidebar-menu", "data-sidebar": "menu", className: cn$1("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
61338
61338
|
}
|
|
61339
61339
|
function SidebarMenuItem$1({ className, ...props }) {
|
|
61340
61340
|
return (jsx("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn$1("group/menu-item relative", className), ...props }));
|
|
@@ -61380,9 +61380,9 @@ function SidebarMenuBadge$1({ className, ...props }) {
|
|
|
61380
61380
|
}
|
|
61381
61381
|
function SidebarMenuSkeleton$1({ className, showIcon = false, ...props }) {
|
|
61382
61382
|
// Random width between 50 to 90%.
|
|
61383
|
-
const
|
|
61383
|
+
const width = React.useMemo(() => {
|
|
61384
61384
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
61385
|
-
});
|
|
61385
|
+
}, []);
|
|
61386
61386
|
return (jsxs("div", { "data-slot": "sidebar-menu-skeleton", "data-sidebar": "menu-skeleton", className: cn$1("flex h-8 items-center gap-2 rounded-md px-2", className), ...props, children: [showIcon && (jsx(Skeleton$1, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" })), jsx(Skeleton$1, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: {
|
|
61387
61387
|
"--skeleton-width": width,
|
|
61388
61388
|
} })] }));
|
|
@@ -62716,5 +62716,78 @@ const TooltipContent = (props) => jsx(TooltipContent$1, { ...props });
|
|
|
62716
62716
|
const TooltipProvider = (props) => jsx(TooltipProvider$1, { ...props });
|
|
62717
62717
|
const TooltipTrigger = (props) => jsx(TooltipTrigger$1, { ...props });
|
|
62718
62718
|
|
|
62719
|
-
|
|
62719
|
+
const typographyVariants = cva("", {
|
|
62720
|
+
variants: {
|
|
62721
|
+
variant: {
|
|
62722
|
+
jumbo: "text-5xl font-semibold leading-none tracking-tight",
|
|
62723
|
+
h1: "text-[32px] font-semibold leading-tight tracking-tight",
|
|
62724
|
+
h2: "text-2xl font-semibold leading-tight tracking-tight",
|
|
62725
|
+
h3: "text-xl font-semibold leading-tight tracking-tight",
|
|
62726
|
+
h4: "text-base font-semibold leading-tight",
|
|
62727
|
+
h5: "text-[15px] font-semibold leading-tight",
|
|
62728
|
+
h6: "text-sm font-semibold leading-tight",
|
|
62729
|
+
body1: "text-base leading-normal",
|
|
62730
|
+
body2: "text-[15px] leading-normal",
|
|
62731
|
+
body3: "text-sm leading-normal",
|
|
62732
|
+
caption: "text-xs leading-normal",
|
|
62733
|
+
nano: "text-[10px] leading-normal",
|
|
62734
|
+
code: "font-mono text-sm",
|
|
62735
|
+
},
|
|
62736
|
+
weight: {
|
|
62737
|
+
thin: "font-thin",
|
|
62738
|
+
extralight: "font-extralight",
|
|
62739
|
+
light: "font-light",
|
|
62740
|
+
normal: "font-normal",
|
|
62741
|
+
medium: "font-medium",
|
|
62742
|
+
semibold: "font-semibold",
|
|
62743
|
+
bold: "font-bold",
|
|
62744
|
+
extrabold: "font-extrabold",
|
|
62745
|
+
black: "font-black",
|
|
62746
|
+
},
|
|
62747
|
+
color: {
|
|
62748
|
+
default: "text-foreground",
|
|
62749
|
+
muted: "text-muted-foreground",
|
|
62750
|
+
primary: "text-primary",
|
|
62751
|
+
destructive: "text-destructive",
|
|
62752
|
+
inherit: "text-inherit",
|
|
62753
|
+
},
|
|
62754
|
+
lineClamp: {
|
|
62755
|
+
none: "",
|
|
62756
|
+
1: "line-clamp-1",
|
|
62757
|
+
2: "line-clamp-2",
|
|
62758
|
+
3: "line-clamp-3",
|
|
62759
|
+
},
|
|
62760
|
+
},
|
|
62761
|
+
defaultVariants: {
|
|
62762
|
+
variant: "body3",
|
|
62763
|
+
color: "default",
|
|
62764
|
+
},
|
|
62765
|
+
});
|
|
62766
|
+
const defaultElementMap = {
|
|
62767
|
+
jumbo: "h1",
|
|
62768
|
+
h1: "h1",
|
|
62769
|
+
h2: "h2",
|
|
62770
|
+
h3: "h3",
|
|
62771
|
+
h4: "h4",
|
|
62772
|
+
h5: "h5",
|
|
62773
|
+
h6: "h6",
|
|
62774
|
+
body1: "p",
|
|
62775
|
+
body2: "p",
|
|
62776
|
+
body3: "p",
|
|
62777
|
+
caption: "span",
|
|
62778
|
+
nano: "span",
|
|
62779
|
+
code: "code",
|
|
62780
|
+
};
|
|
62781
|
+
const Typography$1 = React.forwardRef(({ className, variant = "body3", weight, color = "default", lineClamp, asChild = false, ...props }, ref) => {
|
|
62782
|
+
const Comp = asChild
|
|
62783
|
+
? Slot
|
|
62784
|
+
: defaultElementMap[variant ?? "body3"] ?? "p";
|
|
62785
|
+
return (jsx(Comp, { ref: ref, "data-slot": "typography", "data-variant": variant, className: cn$1(typographyVariants({ variant, weight, color, lineClamp, className })), ...props }));
|
|
62786
|
+
});
|
|
62787
|
+
Typography$1.displayName = "Typography";
|
|
62788
|
+
|
|
62789
|
+
const Typography = forwardRef((props, ref) => jsx(Typography$1, { ref: ref, ...props }));
|
|
62790
|
+
Typography.displayName = "Typography";
|
|
62791
|
+
|
|
62792
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button$1 as Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, 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, 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, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, badgeVariants, buttonGroupVariants, buttonVariants, cn$1 as cn, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, typographyVariants, useCarousel, useComboboxAnchor, useIsMobile, useSidebar };
|
|
62720
62793
|
//# sourceMappingURL=index.js.map
|