@mijn-ui/react-dropdown-menu 0.1.1 → 0.2.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/index.d.ts +17 -18
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import * as tailwind_merge from 'tailwind-merge';
|
|
4
3
|
import * as _mijn_ui_react_theme from '@mijn-ui/react-theme';
|
|
5
|
-
import {
|
|
4
|
+
import { UnstyledComponentWithSlots, DropdownMenuSlots, UnstyledProps } from '@mijn-ui/react-theme';
|
|
6
5
|
import * as React from 'react';
|
|
7
6
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
7
|
|
|
@@ -16,52 +15,52 @@ declare const useDropdownStyles: (unstyledOverride?: boolean) => {
|
|
|
16
15
|
isUnstyled: boolean | undefined;
|
|
17
16
|
base: (slotProps?: ({
|
|
18
17
|
inset?: boolean | undefined;
|
|
19
|
-
} & tailwind_variants.ClassProp<
|
|
18
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
20
19
|
trigger: (slotProps?: ({
|
|
21
20
|
inset?: boolean | undefined;
|
|
22
|
-
} & tailwind_variants.ClassProp<
|
|
21
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
23
22
|
subTrigger: (slotProps?: ({
|
|
24
23
|
inset?: boolean | undefined;
|
|
25
|
-
} & tailwind_variants.ClassProp<
|
|
24
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
26
25
|
subTriggerIcon: (slotProps?: ({
|
|
27
26
|
inset?: boolean | undefined;
|
|
28
|
-
} & tailwind_variants.ClassProp<
|
|
27
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
29
28
|
subContent: (slotProps?: ({
|
|
30
29
|
inset?: boolean | undefined;
|
|
31
|
-
} & tailwind_variants.ClassProp<
|
|
30
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
32
31
|
content: (slotProps?: ({
|
|
33
32
|
inset?: boolean | undefined;
|
|
34
|
-
} & tailwind_variants.ClassProp<
|
|
33
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
35
34
|
item: (slotProps?: ({
|
|
36
35
|
inset?: boolean | undefined;
|
|
37
|
-
} & tailwind_variants.ClassProp<
|
|
36
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
38
37
|
checkboxItem: (slotProps?: ({
|
|
39
38
|
inset?: boolean | undefined;
|
|
40
|
-
} & tailwind_variants.ClassProp<
|
|
39
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
41
40
|
checkboxItemIconWrapper: (slotProps?: ({
|
|
42
41
|
inset?: boolean | undefined;
|
|
43
|
-
} & tailwind_variants.ClassProp<
|
|
42
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
44
43
|
checkboxItemIcon: (slotProps?: ({
|
|
45
44
|
inset?: boolean | undefined;
|
|
46
|
-
} & tailwind_variants.ClassProp<
|
|
45
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
47
46
|
radioItem: (slotProps?: ({
|
|
48
47
|
inset?: boolean | undefined;
|
|
49
|
-
} & tailwind_variants.ClassProp<
|
|
48
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
50
49
|
radioItemIconWrapper: (slotProps?: ({
|
|
51
50
|
inset?: boolean | undefined;
|
|
52
|
-
} & tailwind_variants.ClassProp<
|
|
51
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
53
52
|
radioItemIcon: (slotProps?: ({
|
|
54
53
|
inset?: boolean | undefined;
|
|
55
|
-
} & tailwind_variants.ClassProp<
|
|
54
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
56
55
|
label: (slotProps?: ({
|
|
57
56
|
inset?: boolean | undefined;
|
|
58
|
-
} & tailwind_variants.ClassProp<
|
|
57
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
59
58
|
separator: (slotProps?: ({
|
|
60
59
|
inset?: boolean | undefined;
|
|
61
|
-
} & tailwind_variants.ClassProp<
|
|
60
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
62
61
|
shortcut: (slotProps?: ({
|
|
63
62
|
inset?: boolean | undefined;
|
|
64
|
-
} & tailwind_variants.ClassProp<
|
|
63
|
+
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
|
|
65
64
|
};
|
|
66
65
|
type DropdownMenuProps = DropdownMenuPrimitive.DropdownMenuProps & DropdownMenuBaseProps;
|
|
67
66
|
declare const DropdownMenu: ({ classNames, unstyled, ...props }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-dropdown-menu",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
"lucide-react": "^0.479.0",
|
|
27
27
|
"react": "19.0.0",
|
|
28
28
|
"react-dom": "19.0.0",
|
|
29
|
-
"@mijn-ui/react-button": "0.
|
|
30
|
-
"@mijn-ui/react-core": "0.
|
|
31
|
-
"@mijn-ui/react-theme": "0.
|
|
29
|
+
"@mijn-ui/react-button": "0.2.0",
|
|
30
|
+
"@mijn-ui/react-core": "0.2.0",
|
|
31
|
+
"@mijn-ui/react-theme": "0.2.0",
|
|
32
32
|
"eslint-config-custom": "0.0.1",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"tsconfig": "0.0.0",
|
|
34
|
+
"tsup-config": "0.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@radix-ui/react-dropdown-menu": "^2.1.3",
|
|
38
|
+
"@mijn-ui/react-hooks": "0.0.19",
|
|
38
39
|
"@mijn-ui/react-utilities": "0.0.9",
|
|
39
|
-
"@mijn-ui/shared-icons": "0.0
|
|
40
|
-
"@mijn-ui/react-hooks": "0.0.18"
|
|
40
|
+
"@mijn-ui/shared-icons": "0.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@mijn-ui/react-core": "^0.
|
|
44
|
-
"@mijn-ui/react-theme": "^0.
|
|
43
|
+
"@mijn-ui/react-core": "^0.2.0",
|
|
44
|
+
"@mijn-ui/react-theme": "^0.2.0",
|
|
45
45
|
"react": "^19.0",
|
|
46
46
|
"react-dom": "^19.0"
|
|
47
47
|
},
|