@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/cjs/index.js
CHANGED
|
@@ -61287,11 +61287,11 @@ function SidebarProvider$1({ defaultOpen = true, open: openProp, onOpenChange: s
|
|
|
61287
61287
|
setOpenMobile,
|
|
61288
61288
|
toggleSidebar,
|
|
61289
61289
|
}), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
61290
|
-
return (jsxRuntime.jsx(SidebarContext.Provider, { value: contextValue, children: jsxRuntime.jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
61291
|
-
|
|
61292
|
-
|
|
61293
|
-
|
|
61294
|
-
|
|
61290
|
+
return (jsxRuntime.jsx(SidebarContext.Provider, { value: contextValue, children: jsxRuntime.jsx(TooltipProvider$1, { delayDuration: 0, children: jsxRuntime.jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
61291
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
61292
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
61293
|
+
...style,
|
|
61294
|
+
}, className: cn$1("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className), ...props, children: children }) }) }));
|
|
61295
61295
|
}
|
|
61296
61296
|
function Sidebar$1({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, dir, ...props }) {
|
|
61297
61297
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
@@ -61309,7 +61309,7 @@ function Sidebar$1({ side = "left", variant = "sidebar", collapsible = "offcanva
|
|
|
61309
61309
|
// Adjust the padding for floating and inset variants.
|
|
61310
61310
|
variant === "floating" || variant === "inset"
|
|
61311
61311
|
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
61312
|
-
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", className), ...props, children: jsxRuntime.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]:
|
|
61312
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", className), ...props, children: jsxRuntime.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 }) })] }));
|
|
61313
61313
|
}
|
|
61314
61314
|
function SidebarTrigger$1({ className, onClick, ...props }) {
|
|
61315
61315
|
const { toggleSidebar } = useSidebar();
|
|
@@ -61320,7 +61320,7 @@ function SidebarTrigger$1({ className, onClick, ...props }) {
|
|
|
61320
61320
|
}
|
|
61321
61321
|
function SidebarRail$1({ className, ...props }) {
|
|
61322
61322
|
const { toggleSidebar } = useSidebar();
|
|
61323
|
-
return (jsxRuntime.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
|
|
61323
|
+
return (jsxRuntime.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 }));
|
|
61324
61324
|
}
|
|
61325
61325
|
function SidebarInset$1({ className, ...props }) {
|
|
61326
61326
|
return (jsxRuntime.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 }));
|
|
@@ -61338,7 +61338,7 @@ function SidebarSeparator$1({ className, ...props }) {
|
|
|
61338
61338
|
return (jsxRuntime.jsx(Separator$2, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn$1("mx-2 w-auto bg-sidebar-border", className), ...props }));
|
|
61339
61339
|
}
|
|
61340
61340
|
function SidebarContent$1({ className, ...props }) {
|
|
61341
|
-
return (jsxRuntime.jsx("div", { "data-slot": "sidebar-content", "data-sidebar": "content", className: cn$1("no-scrollbar flex min-h-0 flex-1 flex-col gap-
|
|
61341
|
+
return (jsxRuntime.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 }));
|
|
61342
61342
|
}
|
|
61343
61343
|
function SidebarGroup$1({ className, ...props }) {
|
|
61344
61344
|
return (jsxRuntime.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 }));
|
|
@@ -61355,7 +61355,7 @@ function SidebarGroupContent$1({ className, ...props }) {
|
|
|
61355
61355
|
return (jsxRuntime.jsx("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: cn$1("w-full text-sm", className), ...props }));
|
|
61356
61356
|
}
|
|
61357
61357
|
function SidebarMenu$1({ className, ...props }) {
|
|
61358
|
-
return (jsxRuntime.jsx("ul", { "data-slot": "sidebar-menu", "data-sidebar": "menu", className: cn$1("flex w-full min-w-0 flex-col gap-
|
|
61358
|
+
return (jsxRuntime.jsx("ul", { "data-slot": "sidebar-menu", "data-sidebar": "menu", className: cn$1("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
61359
61359
|
}
|
|
61360
61360
|
function SidebarMenuItem$1({ className, ...props }) {
|
|
61361
61361
|
return (jsxRuntime.jsx("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn$1("group/menu-item relative", className), ...props }));
|
|
@@ -61401,9 +61401,9 @@ function SidebarMenuBadge$1({ className, ...props }) {
|
|
|
61401
61401
|
}
|
|
61402
61402
|
function SidebarMenuSkeleton$1({ className, showIcon = false, ...props }) {
|
|
61403
61403
|
// Random width between 50 to 90%.
|
|
61404
|
-
const
|
|
61404
|
+
const width = React__namespace.useMemo(() => {
|
|
61405
61405
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
61406
|
-
});
|
|
61406
|
+
}, []);
|
|
61407
61407
|
return (jsxRuntime.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 && (jsxRuntime.jsx(Skeleton$1, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" })), jsxRuntime.jsx(Skeleton$1, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: {
|
|
61408
61408
|
"--skeleton-width": width,
|
|
61409
61409
|
} })] }));
|
|
@@ -62737,6 +62737,79 @@ const TooltipContent = (props) => jsxRuntime.jsx(TooltipContent$1, { ...props })
|
|
|
62737
62737
|
const TooltipProvider = (props) => jsxRuntime.jsx(TooltipProvider$1, { ...props });
|
|
62738
62738
|
const TooltipTrigger = (props) => jsxRuntime.jsx(TooltipTrigger$1, { ...props });
|
|
62739
62739
|
|
|
62740
|
+
const typographyVariants = cva("", {
|
|
62741
|
+
variants: {
|
|
62742
|
+
variant: {
|
|
62743
|
+
jumbo: "text-5xl font-semibold leading-none tracking-tight",
|
|
62744
|
+
h1: "text-[32px] font-semibold leading-tight tracking-tight",
|
|
62745
|
+
h2: "text-2xl font-semibold leading-tight tracking-tight",
|
|
62746
|
+
h3: "text-xl font-semibold leading-tight tracking-tight",
|
|
62747
|
+
h4: "text-base font-semibold leading-tight",
|
|
62748
|
+
h5: "text-[15px] font-semibold leading-tight",
|
|
62749
|
+
h6: "text-sm font-semibold leading-tight",
|
|
62750
|
+
body1: "text-base leading-normal",
|
|
62751
|
+
body2: "text-[15px] leading-normal",
|
|
62752
|
+
body3: "text-sm leading-normal",
|
|
62753
|
+
caption: "text-xs leading-normal",
|
|
62754
|
+
nano: "text-[10px] leading-normal",
|
|
62755
|
+
code: "font-mono text-sm",
|
|
62756
|
+
},
|
|
62757
|
+
weight: {
|
|
62758
|
+
thin: "font-thin",
|
|
62759
|
+
extralight: "font-extralight",
|
|
62760
|
+
light: "font-light",
|
|
62761
|
+
normal: "font-normal",
|
|
62762
|
+
medium: "font-medium",
|
|
62763
|
+
semibold: "font-semibold",
|
|
62764
|
+
bold: "font-bold",
|
|
62765
|
+
extrabold: "font-extrabold",
|
|
62766
|
+
black: "font-black",
|
|
62767
|
+
},
|
|
62768
|
+
color: {
|
|
62769
|
+
default: "text-foreground",
|
|
62770
|
+
muted: "text-muted-foreground",
|
|
62771
|
+
primary: "text-primary",
|
|
62772
|
+
destructive: "text-destructive",
|
|
62773
|
+
inherit: "text-inherit",
|
|
62774
|
+
},
|
|
62775
|
+
lineClamp: {
|
|
62776
|
+
none: "",
|
|
62777
|
+
1: "line-clamp-1",
|
|
62778
|
+
2: "line-clamp-2",
|
|
62779
|
+
3: "line-clamp-3",
|
|
62780
|
+
},
|
|
62781
|
+
},
|
|
62782
|
+
defaultVariants: {
|
|
62783
|
+
variant: "body3",
|
|
62784
|
+
color: "default",
|
|
62785
|
+
},
|
|
62786
|
+
});
|
|
62787
|
+
const defaultElementMap = {
|
|
62788
|
+
jumbo: "h1",
|
|
62789
|
+
h1: "h1",
|
|
62790
|
+
h2: "h2",
|
|
62791
|
+
h3: "h3",
|
|
62792
|
+
h4: "h4",
|
|
62793
|
+
h5: "h5",
|
|
62794
|
+
h6: "h6",
|
|
62795
|
+
body1: "p",
|
|
62796
|
+
body2: "p",
|
|
62797
|
+
body3: "p",
|
|
62798
|
+
caption: "span",
|
|
62799
|
+
nano: "span",
|
|
62800
|
+
code: "code",
|
|
62801
|
+
};
|
|
62802
|
+
const Typography$1 = React__namespace.forwardRef(({ className, variant = "body3", weight, color = "default", lineClamp, asChild = false, ...props }, ref) => {
|
|
62803
|
+
const Comp = asChild
|
|
62804
|
+
? Slot
|
|
62805
|
+
: defaultElementMap[variant ?? "body3"] ?? "p";
|
|
62806
|
+
return (jsxRuntime.jsx(Comp, { ref: ref, "data-slot": "typography", "data-variant": variant, className: cn$1(typographyVariants({ variant, weight, color, lineClamp, className })), ...props }));
|
|
62807
|
+
});
|
|
62808
|
+
Typography$1.displayName = "Typography";
|
|
62809
|
+
|
|
62810
|
+
const Typography = React.forwardRef((props, ref) => jsxRuntime.jsx(Typography$1, { ref: ref, ...props }));
|
|
62811
|
+
Typography.displayName = "Typography";
|
|
62812
|
+
|
|
62740
62813
|
exports.Accordion = Accordion;
|
|
62741
62814
|
exports.AccordionContent = AccordionContent;
|
|
62742
62815
|
exports.AccordionItem = AccordionItem;
|
|
@@ -63033,6 +63106,7 @@ exports.Tooltip = Tooltip;
|
|
|
63033
63106
|
exports.TooltipContent = TooltipContent;
|
|
63034
63107
|
exports.TooltipProvider = TooltipProvider;
|
|
63035
63108
|
exports.TooltipTrigger = TooltipTrigger;
|
|
63109
|
+
exports.Typography = Typography;
|
|
63036
63110
|
exports.badgeVariants = badgeVariants;
|
|
63037
63111
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
63038
63112
|
exports.buttonVariants = buttonVariants;
|
|
@@ -63040,6 +63114,7 @@ exports.cn = cn$1;
|
|
|
63040
63114
|
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
63041
63115
|
exports.tabsListVariants = tabsListVariants;
|
|
63042
63116
|
exports.toggleVariants = toggleVariants;
|
|
63117
|
+
exports.typographyVariants = typographyVariants;
|
|
63043
63118
|
exports.useCarousel = useCarousel;
|
|
63044
63119
|
exports.useComboboxAnchor = useComboboxAnchor;
|
|
63045
63120
|
exports.useIsMobile = useIsMobile;
|