luan-ui 0.6.1 → 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.
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuGroupProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,45 +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
|
-
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;
|
|
19
|
-
})[] | undefined;
|
|
7
|
+
compoundVariants?: import("responsive-class-variants/dist/types").CompoundVariantWithSlots<T, keyof S & string, "sm" | "md" | "lg" | "xl">[] | undefined;
|
|
20
8
|
onComplete?: (classes: string) => string;
|
|
21
|
-
}): () => { [
|
|
22
|
-
|
|
23
|
-
class?: string;
|
|
24
|
-
}) | undefined) => string; };
|
|
25
|
-
<T extends {
|
|
26
|
-
[x: string]: {
|
|
27
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
28
|
-
};
|
|
29
|
-
} = Record<never, {
|
|
30
|
-
[x: string]: (string | readonly string[]) | Record<string, string | readonly string[]>;
|
|
31
|
-
}>>(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: {
|
|
32
11
|
base: string;
|
|
33
12
|
variants?: T | undefined;
|
|
34
|
-
compoundVariants?: Partial<
|
|
35
|
-
className?: string;
|
|
36
|
-
class?: string;
|
|
37
|
-
}>[] | undefined;
|
|
13
|
+
compoundVariants?: Partial<import("responsive-class-variants/dist/types").VariantProps<T, "sm" | "md" | "lg" | "xl">>[] | undefined;
|
|
38
14
|
onComplete?: (classes: string) => string;
|
|
39
|
-
}): (props?: (
|
|
40
|
-
className?: string;
|
|
41
|
-
class?: string;
|
|
42
|
-
}) | undefined) => string;
|
|
15
|
+
}): (props?: import("responsive-class-variants/dist/types").VariantProps<T, "sm" | "md" | "lg" | "xl"> | undefined) => string;
|
|
43
16
|
};
|
|
44
17
|
export type Breakpoints = (typeof breakpoints)[number];
|
|
45
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,26 +33,26 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/benebene84/luan-ui#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "2.
|
|
37
|
-
"@chromatic-com/storybook": "^5.0.
|
|
38
|
-
"@storybook/addon-docs": "^10.2.
|
|
39
|
-
"@storybook/addon-onboarding": "^10.2.
|
|
40
|
-
"@storybook/react-vite": "^10.2.
|
|
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
45
|
"@testing-library/react": "^16.3.2",
|
|
46
46
|
"@testing-library/user-event": "^14.6.1",
|
|
47
|
-
"@types/node": "^25.
|
|
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": "^28.
|
|
52
|
-
"lefthook": "^2.1.
|
|
53
|
-
"responsive-class-variants": "^1.3.
|
|
54
|
-
"storybook": "^10.2.
|
|
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
58
|
"vite": "^7.3.1",
|
|
@@ -63,11 +63,11 @@
|
|
|
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
|
}
|