luan-ui 0.6.0 → 0.6.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/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 +4 -4
- 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 +6 -29
- package/package.json +21 -21
|
@@ -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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Menu } from "@base-ui/react/menu";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
-
declare const DropdownMenu:
|
|
3
|
+
declare const DropdownMenu: <Payload>(props: Menu.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
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>;
|
|
@@ -1,41 +1,18 @@
|
|
|
1
1
|
import { type BreakpointsMap as RcvBreakpointsMap, type ResponsiveValue as RcvResponsiveValue } from "responsive-class-variants";
|
|
2
2
|
export declare const breakpoints: readonly ["sm", "md", "lg", "xl"];
|
|
3
3
|
export declare const getVariants: {
|
|
4
|
-
<T extends {
|
|
5
|
-
[x: string]: {
|
|
6
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
7
|
-
};
|
|
8
|
-
} = Record<never, {
|
|
9
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
10
|
-
}>, S extends Record<string, string | readonly string[]> = Record<string, string | readonly string[]>>(config: {
|
|
4
|
+
<T extends import("responsive-class-variants/dist/types").VariantConfig = Record<never, import("responsive-class-variants/dist/types").VariantValue>, S extends Record<string, import("responsive-class-variants/dist/types").SlotConfig> = Record<string, import("responsive-class-variants/dist/types").ClassValue>>(config: {
|
|
11
5
|
slots: S;
|
|
12
6
|
variants?: T | undefined;
|
|
13
|
-
compoundVariants?: (
|
|
14
|
-
className?: string;
|
|
15
|
-
}> & {
|
|
16
|
-
class?: Partial<Record<keyof S & string, string | readonly string[]>> | undefined;
|
|
17
|
-
className?: string;
|
|
18
|
-
})[] | undefined;
|
|
7
|
+
compoundVariants?: import("responsive-class-variants/dist/types").CompoundVariantWithSlots<T, keyof S & string, "sm" | "md" | "lg" | "xl">[] | undefined;
|
|
19
8
|
onComplete?: (classes: string) => string;
|
|
20
|
-
}): () => { [
|
|
21
|
-
|
|
22
|
-
}) | undefined) => string; };
|
|
23
|
-
<T extends {
|
|
24
|
-
[x: string]: {
|
|
25
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
26
|
-
};
|
|
27
|
-
} = Record<never, {
|
|
28
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
29
|
-
}>>(config: {
|
|
9
|
+
}): () => { [K in keyof S]: (props?: import("responsive-class-variants/dist/types").VariantProps<T, "sm" | "md" | "lg" | "xl"> | undefined) => string; };
|
|
10
|
+
<T extends import("responsive-class-variants/dist/types").VariantConfig = Record<never, import("responsive-class-variants/dist/types").VariantValue>>(config: {
|
|
30
11
|
base: string;
|
|
31
12
|
variants?: T | undefined;
|
|
32
|
-
compoundVariants?: Partial<
|
|
33
|
-
className?: string;
|
|
34
|
-
}>[] | undefined;
|
|
13
|
+
compoundVariants?: Partial<import("responsive-class-variants/dist/types").VariantProps<T, "sm" | "md" | "lg" | "xl">>[] | undefined;
|
|
35
14
|
onComplete?: (classes: string) => string;
|
|
36
|
-
}): (props?: (
|
|
37
|
-
className?: string;
|
|
38
|
-
}) | undefined) => string;
|
|
15
|
+
}): (props?: import("responsive-class-variants/dist/types").VariantProps<T, "sm" | "md" | "lg" | "xl"> | undefined) => string;
|
|
39
16
|
};
|
|
40
17
|
export type Breakpoints = (typeof breakpoints)[number];
|
|
41
18
|
export type ResponsiveValue<T> = RcvResponsiveValue<T, Breakpoints>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "luan-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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,41 +33,41 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/benebene84/luan-ui#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "2.
|
|
37
|
-
"@chromatic-com/storybook": "^
|
|
38
|
-
"@storybook/addon-docs": "^10.
|
|
39
|
-
"@storybook/addon-onboarding": "^10.
|
|
40
|
-
"@storybook/react-vite": "^10.
|
|
41
|
-
"@tailwindcss/postcss": "^4.
|
|
42
|
-
"@tailwindcss/vite": "^4.
|
|
36
|
+
"@biomejs/biome": "2.4.4",
|
|
37
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
38
|
+
"@storybook/addon-docs": "^10.2.10",
|
|
39
|
+
"@storybook/addon-onboarding": "^10.2.10",
|
|
40
|
+
"@storybook/react-vite": "^10.2.10",
|
|
41
|
+
"@tailwindcss/postcss": "^4.2.0",
|
|
42
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
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.3.0",
|
|
48
|
+
"@types/react": "^19.2.14",
|
|
49
49
|
"@types/react-dom": "^19.2.3",
|
|
50
|
-
"@vitejs/plugin-react": "^5.1.
|
|
51
|
-
"jsdom": "^
|
|
52
|
-
"lefthook": "^2.
|
|
53
|
-
"responsive-class-variants": "^1.2
|
|
54
|
-
"storybook": "^10.
|
|
55
|
-
"tailwindcss": "^4.
|
|
50
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
51
|
+
"jsdom": "^28.1.0",
|
|
52
|
+
"lefthook": "^2.1.1",
|
|
53
|
+
"responsive-class-variants": "^1.3.2",
|
|
54
|
+
"storybook": "^10.2.10",
|
|
55
|
+
"tailwindcss": "^4.2.0",
|
|
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.2.0",
|
|
67
67
|
"@radix-ui/react-icons": "^1.3.2",
|
|
68
68
|
"clsx": "^2.1.1",
|
|
69
69
|
"sonner": "^2.0.7",
|
|
70
|
-
"tailwind-merge": "^3.
|
|
70
|
+
"tailwind-merge": "^3.5.0"
|
|
71
71
|
},
|
|
72
72
|
"packageManager": "pnpm@10.26.2"
|
|
73
73
|
}
|