mantine-contextmenu 6.0.0 → 6.0.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/LICENSE +1 -1
- package/README.md +15 -14
- package/package.json +4 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Ionuț-Cristian Florescu
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
# Mantine ContextMenu
|
|
1
|
+
# Mantine ContextMenu V6
|
|
2
|
+
|
|
3
|
+
**⚠️ Mantine-ContextMenu V6 is compatible with Mantine V6.**
|
|
4
|
+
**⏳ Mantine V7 support is in the roadmap.**
|
|
5
|
+
**❤️ If you want to speed up the process, please consider [sponsoring my work](https://github.com/sponsors/icflorescu).**
|
|
2
6
|
|
|
3
7
|

|
|
4
8
|
[![NPM version][npm-image]][npm-url]
|
|
@@ -16,28 +20,25 @@ The "dark-theme aware" **context-menu** for your Mantine UI applications, built
|
|
|
16
20
|
|
|
17
21
|
## Features
|
|
18
22
|
|
|
19
|
-
- **Lightweight** - no
|
|
23
|
+
- **Lightweight** - no external dependencies, [no bloat](https://bundlephobia.com/package/mantine-contextmenu)
|
|
20
24
|
- **Dark-theme aware** - automatically adapts to the current Mantine theme
|
|
21
|
-
- **[Simple API](https://icflorescu.github.io/mantine-contextmenu/getting-started)** - just wrap your application in the `ContextMenuProvider` component and use the hook-generated function in your code
|
|
22
|
-
- **[Custom content support](https://icflorescu.github.io/mantine-contextmenu/examples/custom-content)** - use any Mantine component as context menu content
|
|
23
|
-
- **[Highly customizable styling](https://icflorescu.github.io/mantine-contextmenu/examples/styling)** - use the `className`/`classNames`, `style`/`styles` and `sx` props to customize the context menu appearance
|
|
24
|
-
- **[Written in Typescript and well-documented](https://icflorescu.github.io/mantine-contextmenu/type-definitions)** - with detailed JSDoc annotations for each exported function and component
|
|
25
|
+
- **[Simple API](https://icflorescu.github.io/mantine-contextmenu-v6/getting-started)** - just wrap your application in the `ContextMenuProvider` component and use the hook-generated function in your code
|
|
26
|
+
- **[Custom content support](https://icflorescu.github.io/mantine-contextmenu-v6/examples/custom-content)** - use any Mantine component as context menu content
|
|
27
|
+
- **[Highly customizable styling](https://icflorescu.github.io/mantine-contextmenu-v6/examples/styling)** - use the `className`/`classNames`, `style`/`styles` and `sx` props to customize the context menu appearance
|
|
28
|
+
- **[Written in Typescript and well-documented](https://icflorescu.github.io/mantine-contextmenu-v6/type-definitions)** - with detailed JSDoc annotations for each exported function and component
|
|
25
29
|
|
|
26
30
|
## Full documentation and examples
|
|
27
31
|
|
|
28
|
-
Visit [icflorescu.github.io/mantine-contextmenu](https://icflorescu.github.io/mantine-contextmenu/) to view the full documentation and learn how to use it by browsing the list of usage examples.
|
|
32
|
+
Visit [icflorescu.github.io/mantine-contextmenu](https://icflorescu.github.io/mantine-contextmenu-v6/) to view the full documentation and learn how to use it by browsing the list of usage examples.
|
|
29
33
|
|
|
30
34
|
## Quickstart
|
|
31
35
|
|
|
32
36
|
Install the package and its dependencies:
|
|
33
37
|
|
|
34
38
|
```sh
|
|
35
|
-
npm i @mantine/core@6 @mantine/hooks@6 @emotion/react mantine-contextmenu
|
|
39
|
+
npm i @mantine/core@6 @mantine/hooks@6 @emotion/react mantine-contextmenu@6
|
|
36
40
|
```
|
|
37
41
|
|
|
38
|
-
**NOTE: Mantine-ContextMenu V6 is compatible with Mantine V6.**
|
|
39
|
-
**Mantine v7 support is in thwe roadmap. If you want to speed up the process, please consider [sponsoring my work](https://github.com/sponsors/icflorescu).**
|
|
40
|
-
|
|
41
42
|
If you're using Next.js, Vite, CRA, Remix or Gatsby, you might need to install additional dependencies. Please refer to Mantine's [getting started page](https://mantine.dev/pages/getting-started/) for more details.
|
|
42
43
|
|
|
43
44
|
Wrap your application in the `ContextMenuProvider` components:
|
|
@@ -93,7 +94,7 @@ export default function GettingStartedExample() {
|
|
|
93
94
|
}
|
|
94
95
|
```
|
|
95
96
|
|
|
96
|
-
Make sure to browse the list of [usage examples](https://icflorescu.github.io/mantine-contextmenu/examples/basic-usage) to learn how to unleash the full power of Mantine ContextMenu.
|
|
97
|
+
Make sure to browse the list of [usage examples](https://icflorescu.github.io/mantine-contextmenu-v6/examples/basic-usage) to learn how to unleash the full power of Mantine ContextMenu.
|
|
97
98
|
|
|
98
99
|
## Other useful resources
|
|
99
100
|
|
|
@@ -103,7 +104,7 @@ Make sure to browse the list of [usage examples](https://icflorescu.github.io/ma
|
|
|
103
104
|
|
|
104
105
|
[](https://github.com/icflorescu/mantine-contextmenu/graphs/contributors)
|
|
105
106
|
|
|
106
|
-
Want to [become a code contributor](https://icflorescu.github.io/mantine-contextmenu/contribute-and-support)?
|
|
107
|
+
Want to [become a code contributor](https://icflorescu.github.io/mantine-contextmenu-v6/contribute-and-support)?
|
|
107
108
|
|
|
108
109
|
## Sponsor the project
|
|
109
110
|
|
|
@@ -128,7 +129,7 @@ Mentioning “Mantine ContextMenu” in your text would help me prioritize your
|
|
|
128
129
|
|
|
129
130
|
## License
|
|
130
131
|
|
|
131
|
-
The [MIT License](https://github.com/icflorescu/mantine-contextmenu/blob/master/LICENSE).
|
|
132
|
+
The [MIT License](https://github.com/icflorescu/mantine-contextmenu-v6/blob/master/LICENSE).
|
|
132
133
|
|
|
133
134
|
[npm-url]: https://npmjs.org/package/mantine-contextmenu
|
|
134
135
|
[repo-url]: https://github.com/icflorescu/mantine-contextmenu
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mantine-contextmenu",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Enhance your Mantine UI applications usability with customizable context menus",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
7
7
|
"mantine",
|
|
8
|
+
"mantine-v6",
|
|
8
9
|
"context",
|
|
9
10
|
"menu",
|
|
10
11
|
"context-menu",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@mantine/core": "^6.0.21",
|
|
56
57
|
"@mantine/hooks": "^6.0.21",
|
|
57
|
-
"@types/react": "^18.2.
|
|
58
|
-
"@types/react-dom": "^18.2.
|
|
58
|
+
"@types/react": "^18.2.28",
|
|
59
|
+
"@types/react-dom": "^18.2.13",
|
|
59
60
|
"esbuild": "^0.19.4",
|
|
60
61
|
"react": "^18.2.0",
|
|
61
62
|
"typescript": "^5.2.2"
|