@mijn-ui/react-dropdown-menu 0.3.0 → 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.js +12 -11
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
// src/dropdown-menu.tsx
|
|
4
4
|
import {
|
|
5
|
+
cn,
|
|
5
6
|
createContext,
|
|
6
7
|
useTVUnstyled
|
|
7
8
|
} from "@mijn-ui/react-core";
|
|
8
9
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "@mijn-ui/shared-icons";
|
|
9
10
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
10
|
-
import {
|
|
11
|
+
import { tv } from "tailwind-variants";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
var itemFocusClasses = ["focus:bg-bg-secondary"];
|
|
13
14
|
var commonContentClasses = [
|
|
@@ -104,7 +105,7 @@ var DropdownMenuTrigger = ({
|
|
|
104
105
|
DropdownMenuPrimitive.Trigger,
|
|
105
106
|
{
|
|
106
107
|
className: trigger({
|
|
107
|
-
className:
|
|
108
|
+
className: cn(classNames?.trigger, className)
|
|
108
109
|
}),
|
|
109
110
|
...props
|
|
110
111
|
}
|
|
@@ -122,7 +123,7 @@ var DropdownMenuSubTrigger = ({
|
|
|
122
123
|
DropdownMenuPrimitive.SubTrigger,
|
|
123
124
|
{
|
|
124
125
|
className: subTrigger({
|
|
125
|
-
className:
|
|
126
|
+
className: cn(classNames?.subTrigger, className),
|
|
126
127
|
inset
|
|
127
128
|
}),
|
|
128
129
|
...props,
|
|
@@ -148,7 +149,7 @@ var DropdownMenuSubContent = ({
|
|
|
148
149
|
DropdownMenuPrimitive.SubContent,
|
|
149
150
|
{
|
|
150
151
|
className: subContent({
|
|
151
|
-
className:
|
|
152
|
+
className: cn(classNames?.subContent, className)
|
|
152
153
|
}),
|
|
153
154
|
...props
|
|
154
155
|
}
|
|
@@ -166,7 +167,7 @@ var DropdownMenuContent = ({
|
|
|
166
167
|
{
|
|
167
168
|
sideOffset,
|
|
168
169
|
className: content({
|
|
169
|
-
className:
|
|
170
|
+
className: cn(classNames?.content, className)
|
|
170
171
|
}),
|
|
171
172
|
...props
|
|
172
173
|
}
|
|
@@ -183,7 +184,7 @@ var DropdownMenuItem = ({
|
|
|
183
184
|
DropdownMenuPrimitive.Item,
|
|
184
185
|
{
|
|
185
186
|
className: item({
|
|
186
|
-
className:
|
|
187
|
+
className: cn(classNames?.item, className),
|
|
187
188
|
inset
|
|
188
189
|
}),
|
|
189
190
|
...props
|
|
@@ -207,7 +208,7 @@ var DropdownMenuCheckboxItem = ({
|
|
|
207
208
|
DropdownMenuPrimitive.CheckboxItem,
|
|
208
209
|
{
|
|
209
210
|
className: checkboxItem({
|
|
210
|
-
className:
|
|
211
|
+
className: cn(classNames?.checkboxItem, className)
|
|
211
212
|
}),
|
|
212
213
|
checked,
|
|
213
214
|
...props,
|
|
@@ -244,7 +245,7 @@ var DropdownMenuRadioItem = ({
|
|
|
244
245
|
DropdownMenuPrimitive.RadioItem,
|
|
245
246
|
{
|
|
246
247
|
className: radioItem({
|
|
247
|
-
className:
|
|
248
|
+
className: cn(classNames?.radioItem, className)
|
|
248
249
|
}),
|
|
249
250
|
...props,
|
|
250
251
|
children: [
|
|
@@ -280,7 +281,7 @@ var DropdownMenuLabel = ({
|
|
|
280
281
|
DropdownMenuPrimitive.Label,
|
|
281
282
|
{
|
|
282
283
|
className: label({
|
|
283
|
-
className:
|
|
284
|
+
className: cn(classNames?.label, className),
|
|
284
285
|
inset
|
|
285
286
|
}),
|
|
286
287
|
...props
|
|
@@ -297,7 +298,7 @@ var DropdownMenuSeparator = ({
|
|
|
297
298
|
DropdownMenuPrimitive.Separator,
|
|
298
299
|
{
|
|
299
300
|
className: separator({
|
|
300
|
-
className:
|
|
301
|
+
className: cn(classNames?.separator, className)
|
|
301
302
|
}),
|
|
302
303
|
...props
|
|
303
304
|
}
|
|
@@ -313,7 +314,7 @@ var DropdownMenuShortcut = ({
|
|
|
313
314
|
"span",
|
|
314
315
|
{
|
|
315
316
|
className: shortcut({
|
|
316
|
-
className:
|
|
317
|
+
className: cn(classNames?.shortcut, className)
|
|
317
318
|
}),
|
|
318
319
|
...props
|
|
319
320
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/dropdown-menu.tsx":{"bytes":
|
|
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.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
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.
|
|
29
|
+
"@mijn-ui/react-button": "0.4.0",
|
|
30
|
+
"@mijn-ui/react-core": "0.4.0",
|
|
31
31
|
"eslint-config-custom": "0.0.1",
|
|
32
32
|
"tsconfig": "0.0.0",
|
|
33
33
|
"tsup-config": "0.0.0"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@mijn-ui/shared-icons": "0.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@mijn-ui/react-core": "^0.
|
|
40
|
+
"@mijn-ui/react-core": "^0.4.0",
|
|
41
41
|
"tailwind-merge": "^3.0.0",
|
|
42
42
|
"tailwind-variants": "^3.0.0",
|
|
43
43
|
"react": "^19.0",
|