@mijn-ui/react-dropdown-menu 0.2.1 → 0.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.ts CHANGED
@@ -1,97 +1,198 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_merge from 'tailwind-merge';
3
+ import * as _mijn_ui_react_core from '@mijn-ui/react-core';
4
+ import { UnstyledComponentWithSlots } from '@mijn-ui/react-core';
2
5
  import * as tailwind_variants from 'tailwind-variants';
3
- import * as _mijn_ui_react_theme from '@mijn-ui/react-theme';
4
- import { UnstyledComponentWithSlots, DropdownMenuSlots, UnstyledProps } from '@mijn-ui/react-theme';
6
+ import { VariantProps } from 'tailwind-variants';
5
7
  import * as React from 'react';
6
8
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
9
 
10
+ declare const dropdownMenuStyles: tailwind_variants.TVReturnType<{
11
+ inset: {
12
+ true: {
13
+ item: string;
14
+ label: string;
15
+ subTrigger: string;
16
+ };
17
+ };
18
+ }, {
19
+ base: string;
20
+ trigger: string;
21
+ subTrigger: string;
22
+ subTriggerIcon: string;
23
+ subContent: string[];
24
+ content: string[];
25
+ item: string[];
26
+ checkboxItem: string[];
27
+ checkboxItemIconWrapper: string;
28
+ checkboxItemIcon: string;
29
+ radioItem: string[];
30
+ radioItemIconWrapper: string;
31
+ radioItemIcon: string;
32
+ label: string;
33
+ separator: string;
34
+ shortcut: string;
35
+ }, undefined, {
36
+ inset: {
37
+ true: {
38
+ item: string;
39
+ label: string;
40
+ subTrigger: string;
41
+ };
42
+ };
43
+ }, {
44
+ base: string;
45
+ trigger: string;
46
+ subTrigger: string;
47
+ subTriggerIcon: string;
48
+ subContent: string[];
49
+ content: string[];
50
+ item: string[];
51
+ checkboxItem: string[];
52
+ checkboxItemIconWrapper: string;
53
+ checkboxItemIcon: string;
54
+ radioItem: string[];
55
+ radioItemIconWrapper: string;
56
+ radioItemIcon: string;
57
+ label: string;
58
+ separator: string;
59
+ shortcut: string;
60
+ }, tailwind_variants.TVReturnType<{
61
+ inset: {
62
+ true: {
63
+ item: string;
64
+ label: string;
65
+ subTrigger: string;
66
+ };
67
+ };
68
+ }, {
69
+ base: string;
70
+ trigger: string;
71
+ subTrigger: string;
72
+ subTriggerIcon: string;
73
+ subContent: string[];
74
+ content: string[];
75
+ item: string[];
76
+ checkboxItem: string[];
77
+ checkboxItemIconWrapper: string;
78
+ checkboxItemIcon: string;
79
+ radioItem: string[];
80
+ radioItemIconWrapper: string;
81
+ radioItemIcon: string;
82
+ label: string;
83
+ separator: string;
84
+ shortcut: string;
85
+ }, undefined, unknown, unknown, undefined>>;
86
+ type DropdownMenuVariantProps = VariantProps<typeof dropdownMenuStyles>;
87
+ type DropdownMenuSlots = keyof ReturnType<typeof dropdownMenuStyles>;
88
+
8
89
  declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
9
90
  declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
10
91
  declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
11
92
  declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
12
93
  type DropdownMenuBaseProps = UnstyledComponentWithSlots<DropdownMenuSlots>;
13
94
  declare const useDropdownStyles: (unstyledOverride?: boolean) => {
14
- classNames: _mijn_ui_react_theme.SlotsToClasses<"base" | "trigger" | "subTrigger" | "subTriggerIcon" | "subContent" | "content" | "item" | "checkboxItem" | "checkboxItemIconWrapper" | "checkboxItemIcon" | "radioItem" | "radioItemIconWrapper" | "radioItemIcon" | "label" | "separator" | "shortcut"> | undefined;
95
+ classNames: _mijn_ui_react_core.SlotsToClasses<"base" | "trigger" | "subTrigger" | "subTriggerIcon" | "checkboxItemIconWrapper" | "checkboxItemIcon" | "radioItemIconWrapper" | "radioItemIcon" | "label" | "separator" | "shortcut" | "subContent" | "content" | "item" | "checkboxItem" | "radioItem"> | undefined;
15
96
  isUnstyled: boolean | undefined;
16
97
  base: (slotProps?: ({
17
98
  inset?: boolean | undefined;
18
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
99
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
19
100
  trigger: (slotProps?: ({
20
101
  inset?: boolean | undefined;
21
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
102
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
22
103
  subTrigger: (slotProps?: ({
23
104
  inset?: boolean | undefined;
24
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
105
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
25
106
  subTriggerIcon: (slotProps?: ({
26
107
  inset?: boolean | undefined;
27
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
108
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
28
109
  subContent: (slotProps?: ({
29
110
  inset?: boolean | undefined;
30
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
111
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
31
112
  content: (slotProps?: ({
32
113
  inset?: boolean | undefined;
33
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
114
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
34
115
  item: (slotProps?: ({
35
116
  inset?: boolean | undefined;
36
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
117
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
37
118
  checkboxItem: (slotProps?: ({
38
119
  inset?: boolean | undefined;
39
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
120
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
40
121
  checkboxItemIconWrapper: (slotProps?: ({
41
122
  inset?: boolean | undefined;
42
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
123
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
43
124
  checkboxItemIcon: (slotProps?: ({
44
125
  inset?: boolean | undefined;
45
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
126
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
46
127
  radioItem: (slotProps?: ({
47
128
  inset?: boolean | undefined;
48
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
129
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
49
130
  radioItemIconWrapper: (slotProps?: ({
50
131
  inset?: boolean | undefined;
51
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
132
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
52
133
  radioItemIcon: (slotProps?: ({
53
134
  inset?: boolean | undefined;
54
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
135
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
55
136
  label: (slotProps?: ({
56
137
  inset?: boolean | undefined;
57
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
138
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
58
139
  separator: (slotProps?: ({
59
140
  inset?: boolean | undefined;
60
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
141
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
61
142
  shortcut: (slotProps?: ({
62
143
  inset?: boolean | undefined;
63
- } & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string | undefined;
144
+ } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string | undefined;
64
145
  };
65
146
  type DropdownMenuProps = DropdownMenuPrimitive.DropdownMenuProps & DropdownMenuBaseProps;
66
147
  declare const DropdownMenu: ({ classNames, unstyled, ...props }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
67
- type DropdownTriggerProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Trigger> & UnstyledProps;
148
+ type DropdownTriggerProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Trigger> & {
149
+ unstyled?: boolean;
150
+ };
68
151
  declare const DropdownMenuTrigger: ({ unstyled, className, ...props }: DropdownTriggerProps) => react_jsx_runtime.JSX.Element;
69
- type DropdownMenuSubTriggerProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubTrigger> & UnstyledProps & {
152
+ type DropdownMenuSubTriggerProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubTrigger> & {
153
+ unstyled?: boolean;
154
+ } & {
70
155
  inset?: boolean;
71
156
  };
72
157
  declare const DropdownMenuSubTrigger: ({ unstyled, className, inset, children, ...props }: DropdownMenuSubTriggerProps) => react_jsx_runtime.JSX.Element;
73
- type DropdownMenuSubContentProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubContent> & UnstyledProps;
158
+ type DropdownMenuSubContentProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubContent> & {
159
+ unstyled?: boolean;
160
+ };
74
161
  declare const DropdownMenuSubContent: ({ unstyled, className, ...props }: DropdownMenuSubContentProps) => react_jsx_runtime.JSX.Element;
75
- type DropdownMenuContentProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Content> & UnstyledProps;
162
+ type DropdownMenuContentProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Content> & {
163
+ unstyled?: boolean;
164
+ };
76
165
  declare const DropdownMenuContent: ({ className, unstyled, sideOffset, ...props }: DropdownMenuContentProps) => react_jsx_runtime.JSX.Element;
77
166
  type DropdownMenuItemProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Item> & {
78
167
  inset?: boolean;
79
- } & UnstyledProps;
168
+ } & {
169
+ unstyled?: boolean;
170
+ };
80
171
  declare const DropdownMenuItem: ({ unstyled, className, inset, ...props }: DropdownMenuItemProps) => react_jsx_runtime.JSX.Element;
81
- type DropdownMenuCheckboxItemProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.CheckboxItem> & UnstyledProps;
172
+ type DropdownMenuCheckboxItemProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.CheckboxItem> & {
173
+ unstyled?: boolean;
174
+ };
82
175
  declare const DropdownMenuCheckboxItem: ({ className, unstyled, children, checked, ...props }: DropdownMenuCheckboxItemProps) => react_jsx_runtime.JSX.Element;
83
- type DropdownMenuRadioItemProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.RadioItem> & UnstyledProps;
176
+ type DropdownMenuRadioItemProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.RadioItem> & {
177
+ unstyled?: boolean;
178
+ };
84
179
  declare const DropdownMenuRadioItem: ({ className, unstyled, children, ...props }: DropdownMenuRadioItemProps) => react_jsx_runtime.JSX.Element;
85
180
  type DropdownMenuLabelProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Label> & {
86
181
  inset?: boolean;
87
- } & UnstyledProps;
182
+ } & {
183
+ unstyled?: boolean;
184
+ };
88
185
  declare const DropdownMenuLabel: ({ className, unstyled, inset, ...props }: DropdownMenuLabelProps) => react_jsx_runtime.JSX.Element;
89
- type DropdownMenuSeparatorProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Separator> & UnstyledProps;
186
+ type DropdownMenuSeparatorProps = React.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Separator> & {
187
+ unstyled?: boolean;
188
+ };
90
189
  declare const DropdownMenuSeparator: ({ className, unstyled, ...props }: DropdownMenuSeparatorProps) => react_jsx_runtime.JSX.Element;
91
- type DropdownMenuShortcutProps = React.ComponentPropsWithRef<"span"> & UnstyledProps;
190
+ type DropdownMenuShortcutProps = React.ComponentPropsWithRef<"span"> & {
191
+ unstyled?: boolean;
192
+ };
92
193
  declare const DropdownMenuShortcut: {
93
194
  ({ className, unstyled, ...props }: DropdownMenuShortcutProps): react_jsx_runtime.JSX.Element;
94
195
  displayName: string;
95
196
  };
96
197
 
97
- export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownTriggerProps, useDropdownStyles };
198
+ export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuSlots, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuVariantProps, type DropdownTriggerProps, dropdownMenuStyles, useDropdownStyles };
package/dist/index.js CHANGED
@@ -1,15 +1,78 @@
1
1
  "use client";
2
2
 
3
3
  // src/dropdown-menu.tsx
4
- import { useTVUnstyled } from "@mijn-ui/react-hooks";
5
4
  import {
6
5
  cn,
7
- dropdownMenuStyles
8
- } from "@mijn-ui/react-theme";
9
- import { createContext } from "@mijn-ui/react-utilities";
6
+ createContext,
7
+ useTVUnstyled
8
+ } from "@mijn-ui/react-core";
10
9
  import { CheckIcon, ChevronRightIcon, CircleIcon } from "@mijn-ui/shared-icons";
11
10
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
11
+ import { tv } from "tailwind-variants";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
+ var itemFocusClasses = ["focus:bg-bg-secondary"];
14
+ var commonContentClasses = [
15
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border border-outline-default bg-bg-default-alt text-fg-default shadow-lg"
16
+ ];
17
+ var commonItemClasses = [
18
+ "relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none transition-colors"
19
+ ];
20
+ var commonIconWrapperClasses = "absolute left-2 flex h-3.5 w-3.5 items-center justify-center";
21
+ var dropdownMenuStyles = tv({
22
+ slots: {
23
+ base: "",
24
+ trigger: "",
25
+ subTrigger: "focus-visible:bg-bg-secondary data-[state=open]:bg-bg-secondary flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none",
26
+ subTriggerIcon: "pointer-events-none ml-auto size-4 shrink-0",
27
+ subContent: [
28
+ "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
29
+ "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
30
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
31
+ ...commonContentClasses
32
+ ],
33
+ content: [
34
+ "data-[state=open]:zoom-in-95 data-[state=open]:animate-in data-[state=open]:fade-in-0",
35
+ "data-[state=closed]:zoom-out-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
36
+ "data-[side=bottom]:slide-in-from-bottom-6 data-[side=left]:slide-in-from-left-6 data-[side=right]:slide-in-from-right-6 data-[side=top]:slide-in-from-top-6",
37
+ ...commonContentClasses,
38
+ "!duration-300"
39
+ ],
40
+ item: [
41
+ ...itemFocusClasses,
42
+ "data-[disabled]:pointer-events-none",
43
+ "data-[disabled]:opacity-50",
44
+ "relative flex h-9 cursor-default select-none items-center gap-2 px-2 text-sm outline-none transition-colors [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
45
+ ],
46
+ checkboxItem: [
47
+ ...itemFocusClasses,
48
+ "data-[disabled]:pointer-events-none",
49
+ "data-[disabled]:opacity-50",
50
+ ...commonItemClasses
51
+ ],
52
+ checkboxItemIconWrapper: commonIconWrapperClasses,
53
+ checkboxItemIcon: "size-4",
54
+ radioItem: [
55
+ ...itemFocusClasses,
56
+ "data-[disabled]:pointer-events-none",
57
+ "data-[disabled]:opacity-50",
58
+ ...commonItemClasses
59
+ ],
60
+ radioItemIconWrapper: commonIconWrapperClasses,
61
+ radioItemIcon: "size-2 fill-current",
62
+ label: "px-2 py-1.5 text-sm font-semibold",
63
+ separator: "bg-bg-tertiary h-px -mx-1 my-1",
64
+ shortcut: "ml-auto text-xs tracking-widest opacity-60"
65
+ },
66
+ variants: {
67
+ inset: {
68
+ true: {
69
+ item: "pl-8",
70
+ label: "pl-8",
71
+ subTrigger: "pl-8"
72
+ }
73
+ }
74
+ }
75
+ });
13
76
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
14
77
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
15
78
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
@@ -274,5 +337,6 @@ export {
274
337
  DropdownMenuSubContent,
275
338
  DropdownMenuSubTrigger,
276
339
  DropdownMenuTrigger,
340
+ dropdownMenuStyles,
277
341
  useDropdownStyles
278
342
  };
@@ -1 +1 @@
1
- {"inputs":{"src/dropdown-menu.tsx":{"bytes":11382,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-dropdown-menu","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":32,"imports":[{"path":"src/dropdown-menu.tsx","kind":"import-statement","original":"./dropdown-menu"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-hooks","kind":"import-statement","external":true},{"path":"@mijn-ui/react-theme","kind":"import-statement","external":true},{"path":"@mijn-ui/react-utilities","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-dropdown-menu","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger","useDropdownStyles"],"entryPoint":"src/index.ts","inputs":{"src/dropdown-menu.tsx":{"bytesInOutput":6367},"src/index.ts":{"bytesInOutput":0}},"bytes":6784}}}
1
+ {"inputs":{"src/dropdown-menu.tsx":{"bytes":14377,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-dropdown-menu","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":32,"imports":[{"path":"src/dropdown-menu.tsx","kind":"import-statement","original":"./dropdown-menu"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"@mijn-ui/shared-icons","kind":"import-statement","external":true},{"path":"@radix-ui/react-dropdown-menu","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger","dropdownMenuStyles","useDropdownStyles"],"entryPoint":"src/index.ts","inputs":{"src/dropdown-menu.tsx":{"bytesInOutput":9014},"src/index.ts":{"bytesInOutput":0}},"bytes":9453}}}
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.2.1",
4
+ "version": "0.4.0",
5
5
  "homepage": "https://mijn-ui.vercel.app",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -26,22 +26,20 @@
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.2.0",
30
- "@mijn-ui/react-core": "0.2.0",
31
- "@mijn-ui/react-theme": "0.2.0",
29
+ "@mijn-ui/react-button": "0.4.0",
30
+ "@mijn-ui/react-core": "0.4.0",
32
31
  "eslint-config-custom": "0.0.1",
33
32
  "tsconfig": "0.0.0",
34
33
  "tsup-config": "0.0.0"
35
34
  },
36
35
  "dependencies": {
37
36
  "@radix-ui/react-dropdown-menu": "^2.1.3",
38
- "@mijn-ui/react-hooks": "0.0.19",
39
- "@mijn-ui/react-utilities": "0.0.9",
40
37
  "@mijn-ui/shared-icons": "0.1.0"
41
38
  },
42
39
  "peerDependencies": {
43
- "@mijn-ui/react-core": "^0.2.0",
44
- "@mijn-ui/react-theme": "^0.2.0",
40
+ "@mijn-ui/react-core": "^0.4.0",
41
+ "tailwind-merge": "^3.0.0",
42
+ "tailwind-variants": "^3.0.0",
45
43
  "react": "^19.0",
46
44
  "react-dom": "^19.0"
47
45
  },