@banhosdev/moldsoft-ui 1.3.0 → 1.4.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.mts +50 -33
- package/dist/index.d.ts +50 -33
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +64 -36
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,46 +1,63 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
5
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import
|
|
6
|
+
import { ClassValue } from 'clsx';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
|
+
showBackground?: boolean;
|
|
10
|
+
defaultExpanded?: boolean;
|
|
11
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function Sidebar({ children, showBackground, defaultExpanded, onExpandedChange, className, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SidebarHeader({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function SidebarLogo({ logo, icon, className }: {
|
|
16
|
+
logo: React.ReactNode;
|
|
17
|
+
icon: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function SidebarTrigger({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function SidebarContent({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function SidebarFooter({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function SidebarGroup({ label, children, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
24
|
+
label?: string;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function SidebarCollapsible({ children, defaultOpen }: {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
defaultOpen?: boolean;
|
|
29
|
+
}): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function SidebarCollapsibleTrigger({ children, asChild }: {
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}): react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare function SidebarCollapsibleContent({ children }: {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
37
|
+
interface SidebarItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
38
|
+
icon?: React.ReactNode;
|
|
39
|
+
suffix?: React.ReactNode;
|
|
40
|
+
isActive?: boolean;
|
|
11
41
|
asChild?: boolean;
|
|
12
42
|
}
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare function SidebarItem({ children, icon, suffix, isActive, asChild, className, ...props }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
21
44
|
|
|
22
45
|
interface LogoProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
23
46
|
size?: number;
|
|
24
47
|
}
|
|
25
48
|
declare function Logo({ size, className, ...props }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
26
49
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
logo?: React.ReactNode;
|
|
37
|
-
collapsedLogo?: React.ReactNode;
|
|
38
|
-
className?: string;
|
|
39
|
-
items: SidebarItem[];
|
|
40
|
-
footerItems?: SidebarItem[];
|
|
41
|
-
showBackground?: boolean;
|
|
42
|
-
activePath?: string;
|
|
50
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
declare const buttonVariants: (props?: ({
|
|
53
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
54
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
55
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
56
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
57
|
+
asChild?: boolean;
|
|
43
58
|
}
|
|
44
|
-
declare
|
|
59
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
|
|
61
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
45
62
|
|
|
46
|
-
export { Button, type ButtonProps,
|
|
63
|
+
export { Button, type ButtonProps, Logo, type LogoProps, Separator, Sidebar, SidebarCollapsible, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarLogo, type SidebarProps, SidebarTrigger, buttonVariants, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,46 +1,63 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
5
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import
|
|
6
|
+
import { ClassValue } from 'clsx';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
|
+
showBackground?: boolean;
|
|
10
|
+
defaultExpanded?: boolean;
|
|
11
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function Sidebar({ children, showBackground, defaultExpanded, onExpandedChange, className, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SidebarHeader({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function SidebarLogo({ logo, icon, className }: {
|
|
16
|
+
logo: React.ReactNode;
|
|
17
|
+
icon: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function SidebarTrigger({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function SidebarContent({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function SidebarFooter({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function SidebarGroup({ label, children, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
24
|
+
label?: string;
|
|
25
|
+
}): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function SidebarCollapsible({ children, defaultOpen }: {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
defaultOpen?: boolean;
|
|
29
|
+
}): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function SidebarCollapsibleTrigger({ children, asChild }: {
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}): react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare function SidebarCollapsibleContent({ children }: {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
37
|
+
interface SidebarItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
38
|
+
icon?: React.ReactNode;
|
|
39
|
+
suffix?: React.ReactNode;
|
|
40
|
+
isActive?: boolean;
|
|
11
41
|
asChild?: boolean;
|
|
12
42
|
}
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare function SidebarItem({ children, icon, suffix, isActive, asChild, className, ...props }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
21
44
|
|
|
22
45
|
interface LogoProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
23
46
|
size?: number;
|
|
24
47
|
}
|
|
25
48
|
declare function Logo({ size, className, ...props }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
26
49
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
logo?: React.ReactNode;
|
|
37
|
-
collapsedLogo?: React.ReactNode;
|
|
38
|
-
className?: string;
|
|
39
|
-
items: SidebarItem[];
|
|
40
|
-
footerItems?: SidebarItem[];
|
|
41
|
-
showBackground?: boolean;
|
|
42
|
-
activePath?: string;
|
|
50
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
|
|
52
|
+
declare const buttonVariants: (props?: ({
|
|
53
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
54
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
55
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
56
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
57
|
+
asChild?: boolean;
|
|
43
58
|
}
|
|
44
|
-
declare
|
|
59
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
|
|
61
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
45
62
|
|
|
46
|
-
export { Button, type ButtonProps,
|
|
63
|
+
export { Button, type ButtonProps, Logo, type LogoProps, Separator, Sidebar, SidebarCollapsible, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarLogo, type SidebarProps, SidebarTrigger, buttonVariants, cn };
|