luan-ui 0.6.0 → 0.6.1
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/components/accordion/accordion.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/dist/components/popover/popover.d.ts +3 -3
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/utilities/responsive/responsive.d.ts +8 -4
- package/package.json +17 -17
|
@@ -23,7 +23,7 @@ import type { ComponentProps } from "react";
|
|
|
23
23
|
* @returns {React.ReactNode} The rendered accordion component
|
|
24
24
|
*/
|
|
25
25
|
export type AccordionProps = ComponentProps<typeof BaseAccordion.Root>;
|
|
26
|
-
declare const Accordion: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
26
|
+
declare const Accordion: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").AccordionRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
27
|
export type AccordionItemProps = ComponentProps<typeof BaseAccordion.Item>;
|
|
28
28
|
declare function AccordionItem({ className, ref, ...props }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export type AccordionTriggerProps = ComponentProps<typeof BaseAccordion.Trigger>;
|
|
@@ -10,6 +10,6 @@ export type AlertDialogTitleProps = ComponentProps<typeof BaseAlertDialog.Title>
|
|
|
10
10
|
declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export type AlertDialogDescriptionProps = ComponentProps<typeof BaseAlertDialog.Description>;
|
|
12
12
|
declare function AlertDialogDescription({ className, ref, ...props }: AlertDialogDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const AlertDialogAction: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
14
|
-
declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
13
|
+
declare const AlertDialogAction: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogOverlay, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -2,7 +2,7 @@ import { Dialog as BaseDialog } from "@base-ui/react/dialog";
|
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
3
|
declare const Dialog: typeof BaseDialog.Root;
|
|
4
4
|
declare const DialogTrigger: BaseDialog.Trigger;
|
|
5
|
-
declare const DialogClose: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
5
|
+
declare const DialogClose: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
export type DialogOverlayProps = ComponentProps<typeof BaseDialog.Backdrop>;
|
|
7
7
|
export type DialogContentProps = ComponentProps<typeof BaseDialog.Popup>;
|
|
8
8
|
declare function DialogContent({ children, className, ref, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,7 +9,7 @@ type DrawerContextValue = {
|
|
|
9
9
|
type DrawerProps = ComponentProps<typeof BaseDialog.Root> & DrawerContextValue;
|
|
10
10
|
declare function Drawer({ children, side, ...props }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare const DrawerTrigger: BaseDialog.Trigger;
|
|
12
|
-
declare const DrawerClose: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
12
|
+
declare const DrawerClose: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").DialogCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
export type DrawerOverlayProps = ComponentProps<typeof BaseDialog.Backdrop>;
|
|
14
14
|
export type DrawerContentProps = Omit<ComponentProps<typeof BaseDialog.Popup>, "className"> & {
|
|
15
15
|
className?: string;
|
|
@@ -3,10 +3,10 @@ import type { ComponentProps } from "react";
|
|
|
3
3
|
declare const DropdownMenu: typeof Menu.Root;
|
|
4
4
|
export type DropdownMenuTriggerProps = ComponentProps<typeof Menu.Trigger>;
|
|
5
5
|
declare function DropdownMenuTrigger({ className, ref, ...props }: DropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
7
|
-
declare const DropdownMenuPortal: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
6
|
+
declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const DropdownMenuPortal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const DropdownMenuSub: typeof Menu.SubmenuRoot;
|
|
9
|
-
declare const DropdownMenuRadioGroup: import("react").NamedExoticComponent<import("@base-ui/react
|
|
9
|
+
declare const DropdownMenuRadioGroup: import("react").NamedExoticComponent<Omit<import("@base-ui/react").ContextMenuRadioGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export type DropdownMenuSubTriggerProps = ComponentProps<typeof Menu.SubmenuTrigger> & {
|
|
11
11
|
inset?: boolean;
|
|
12
12
|
};
|
|
@@ -61,7 +61,7 @@ declare function PopoverClose({ className, ref, ...props }: PopoverCloseProps):
|
|
|
61
61
|
/**
|
|
62
62
|
* Popover Portal
|
|
63
63
|
*/
|
|
64
|
-
declare const PopoverPortal: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
64
|
+
declare const PopoverPortal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
65
65
|
/**
|
|
66
66
|
* Popover Anchor
|
|
67
67
|
*/
|
|
@@ -72,9 +72,9 @@ declare function PopoverAnchor({ children, ref, ...props }: PopoverAnchorProps):
|
|
|
72
72
|
/**
|
|
73
73
|
* Popover Title
|
|
74
74
|
*/
|
|
75
|
-
declare const PopoverTitle: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
75
|
+
declare const PopoverTitle: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
76
76
|
/**
|
|
77
77
|
* Popover Description
|
|
78
78
|
*/
|
|
79
|
-
declare const PopoverDescription: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
79
|
+
declare const PopoverDescription: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
80
80
|
export { Popover, PopoverTrigger, PopoverContent, PopoverClose, PopoverPortal, PopoverAnchor, PopoverTitle, PopoverDescription, };
|
|
@@ -8,7 +8,7 @@ declare function Select({ disabled: initialDisabled, required: initialRequired,
|
|
|
8
8
|
/**
|
|
9
9
|
* SelectGroup
|
|
10
10
|
*/
|
|
11
|
-
declare const SelectGroup: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
11
|
+
declare const SelectGroup: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SelectGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
/**
|
|
13
13
|
* SelectValue
|
|
14
14
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
-
declare const Tabs: import("react").ForwardRefExoticComponent<import("@base-ui/react
|
|
3
|
+
declare const Tabs: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").TabsRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export type TabsListProps = ComponentProps<typeof TabsPrimitive.List>;
|
|
5
5
|
declare function TabsList({ className, ref, ...props }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export type TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Tab>;
|
|
@@ -10,15 +10,17 @@ export declare const getVariants: {
|
|
|
10
10
|
}>, S extends Record<string, string | readonly string[]> = Record<string, string | readonly string[]>>(config: {
|
|
11
11
|
slots: S;
|
|
12
12
|
variants?: T | undefined;
|
|
13
|
-
compoundVariants?: (Partial<{ [K in keyof T]?: (T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends Partial<Record<"true" | "false", (string | readonly string[]) | Record<string, string | readonly string[]>>> ? RcvResponsiveValue<boolean, "sm" | "md" | "lg" | "xl"> | undefined : T_1 extends Record<string, unknown> ? RcvResponsiveValue<keyof T_1, "sm" | "md" | "lg" | "xl"> : never : never : never) | undefined; } & {
|
|
14
|
-
className?: string;
|
|
15
|
-
}> & {
|
|
16
|
-
class?: Partial<Record<keyof S & string, string | readonly string[]>> | undefined;
|
|
13
|
+
compoundVariants?: (Partial<Omit<{ [K in keyof T]?: (T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends Partial<Record<"true" | "false", (string | readonly string[]) | Record<string, string | readonly string[]>>> ? RcvResponsiveValue<boolean, "sm" | "md" | "lg" | "xl"> | undefined : T_1 extends Record<string, unknown> ? RcvResponsiveValue<keyof T_1, "sm" | "md" | "lg" | "xl"> : never : never : never) | undefined; } & {
|
|
17
14
|
className?: string;
|
|
15
|
+
class?: string;
|
|
16
|
+
}, "className" | "class">> & {
|
|
17
|
+
class?: (string | Partial<Record<keyof S & string, string | readonly string[]>>) | undefined;
|
|
18
|
+
className?: (string | Partial<Record<keyof S & string, string | readonly string[]>>) | undefined;
|
|
18
19
|
})[] | undefined;
|
|
19
20
|
onComplete?: (classes: string) => string;
|
|
20
21
|
}): () => { [K_1 in keyof S]: (props?: ({ [K in keyof T]?: (T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends Partial<Record<"true" | "false", (string | readonly string[]) | Record<string, string | readonly string[]>>> ? RcvResponsiveValue<boolean, "sm" | "md" | "lg" | "xl"> | undefined : T_1 extends Record<string, unknown> ? RcvResponsiveValue<keyof T_1, "sm" | "md" | "lg" | "xl"> : never : never : never) | undefined; } & {
|
|
21
22
|
className?: string;
|
|
23
|
+
class?: string;
|
|
22
24
|
}) | undefined) => string; };
|
|
23
25
|
<T extends {
|
|
24
26
|
[x: string]: {
|
|
@@ -31,10 +33,12 @@ export declare const getVariants: {
|
|
|
31
33
|
variants?: T | undefined;
|
|
32
34
|
compoundVariants?: Partial<{ [K in keyof T]?: (T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends Partial<Record<"true" | "false", (string | readonly string[]) | Record<string, string | readonly string[]>>> ? RcvResponsiveValue<boolean, "sm" | "md" | "lg" | "xl"> | undefined : T_1 extends Record<string, unknown> ? RcvResponsiveValue<keyof T_1, "sm" | "md" | "lg" | "xl"> : never : never : never) | undefined; } & {
|
|
33
35
|
className?: string;
|
|
36
|
+
class?: string;
|
|
34
37
|
}>[] | undefined;
|
|
35
38
|
onComplete?: (classes: string) => string;
|
|
36
39
|
}): (props?: ({ [K in keyof T]?: (T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends Partial<Record<"true" | "false", (string | readonly string[]) | Record<string, string | readonly string[]>>> ? RcvResponsiveValue<boolean, "sm" | "md" | "lg" | "xl"> | undefined : T_1 extends Record<string, unknown> ? RcvResponsiveValue<keyof T_1, "sm" | "md" | "lg" | "xl"> : never : never : never) | undefined; } & {
|
|
37
40
|
className?: string;
|
|
41
|
+
class?: string;
|
|
38
42
|
}) | undefined) => string;
|
|
39
43
|
};
|
|
40
44
|
export type Breakpoints = (typeof breakpoints)[number];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luan-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "A UI library for React",
|
|
5
5
|
"author": "benebene84 <benedikt.sperl@gmail.com> (https://github.com/benebene84)",
|
|
6
6
|
"main": "/dist/index.js",
|
|
@@ -33,37 +33,37 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/benebene84/luan-ui#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "2.3.
|
|
37
|
-
"@chromatic-com/storybook": "^
|
|
38
|
-
"@storybook/addon-docs": "^10.
|
|
39
|
-
"@storybook/addon-onboarding": "^10.
|
|
40
|
-
"@storybook/react-vite": "^10.
|
|
36
|
+
"@biomejs/biome": "2.3.14",
|
|
37
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
38
|
+
"@storybook/addon-docs": "^10.2.4",
|
|
39
|
+
"@storybook/addon-onboarding": "^10.2.4",
|
|
40
|
+
"@storybook/react-vite": "^10.2.4",
|
|
41
41
|
"@tailwindcss/postcss": "^4.1.18",
|
|
42
42
|
"@tailwindcss/vite": "^4.1.18",
|
|
43
43
|
"@testing-library/dom": "^10.4.1",
|
|
44
44
|
"@testing-library/jest-dom": "^6.9.1",
|
|
45
|
-
"@testing-library/react": "^16.3.
|
|
45
|
+
"@testing-library/react": "^16.3.2",
|
|
46
46
|
"@testing-library/user-event": "^14.6.1",
|
|
47
|
-
"@types/node": "^25.0
|
|
48
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/node": "^25.2.0",
|
|
48
|
+
"@types/react": "^19.2.10",
|
|
49
49
|
"@types/react-dom": "^19.2.3",
|
|
50
|
-
"@vitejs/plugin-react": "^5.1.
|
|
51
|
-
"jsdom": "^
|
|
52
|
-
"lefthook": "^2.0
|
|
53
|
-
"responsive-class-variants": "^1.
|
|
54
|
-
"storybook": "^10.
|
|
50
|
+
"@vitejs/plugin-react": "^5.1.3",
|
|
51
|
+
"jsdom": "^28.0.0",
|
|
52
|
+
"lefthook": "^2.1.0",
|
|
53
|
+
"responsive-class-variants": "^1.3.1",
|
|
54
|
+
"storybook": "^10.2.4",
|
|
55
55
|
"tailwindcss": "^4.1.18",
|
|
56
56
|
"tsc-alias": "^1.8.16",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
|
-
"vite": "^7.3.
|
|
59
|
-
"vitest": "^4.0.
|
|
58
|
+
"vite": "^7.3.1",
|
|
59
|
+
"vitest": "^4.0.18"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": "^19.0.0",
|
|
63
63
|
"react-dom": "^19.0.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@base-ui/react": "^1.
|
|
66
|
+
"@base-ui/react": "^1.1.0",
|
|
67
67
|
"@radix-ui/react-icons": "^1.3.2",
|
|
68
68
|
"clsx": "^2.1.1",
|
|
69
69
|
"sonner": "^2.0.7",
|