mantine-contextmenu 7.0.0-alpha.2 → 7.0.0-alpha.3

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.
Files changed (2) hide show
  1. package/README.md +4 -7
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -32,13 +32,10 @@ Visit [icflorescu.github.io/mantine-contextmenu](https://icflorescu.github.io/ma
32
32
 
33
33
  ## Quickstart
34
34
 
35
- Create a new [Mantine application](https://mantine.dev/pages/getting-started/), then install the package:
35
+ Create a new [Mantine application](https://mantine.dev/pages/getting-started/), make sure to have the `clsx` peer dependency installed,
36
+ then install the package with `npm i mantine-contextmenu` or `yarn add mantine-contextmenu`:
36
37
 
37
- ```sh
38
- npm i mantine-contextmenu
39
- ```
40
-
41
- Wrap your application in a `ContextMenuProvider` **inside** the `MantineProvider` and don't forget to import the necessary CSS files [in the correct order](https://mantine.dev/styles/mantine-styles/) (you [might need to use CSS layers](https://mantine.dev/styles/mantine-styles/#css-layers)):
38
+ Wrap your application in a `ContextMenuProvider` **inside** the `MantineProvider` and don't forget to import the necessary CSS files [in the correct order](https://mantine.dev/styles/mantine-styles/) (you [might need to use CSS layers](https://icflorescu.github.io/mantine-contextmenu/styling/#controlling-the-order-of-styles-with-css-layers)):
42
39
 
43
40
  ```tsx
44
41
  import { MantineProvider } from '@mantine/core';
@@ -58,7 +55,7 @@ function App() {
58
55
  }
59
56
  ```
60
57
 
61
- Use the hook-generated function in your code:
58
+ Use the `showContextMenu` hook-generated function in your code:
62
59
 
63
60
  ```tsx
64
61
  import { IconCopy, IconDownload } from '@tabler/icons-react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantine-contextmenu",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-alpha.3",
4
4
  "description": "Enhance your Mantine UI applications usability with customizable context menus",
5
5
  "keywords": [
6
6
  "ui",
@@ -74,7 +74,7 @@
74
74
  "@mantine/hooks": "^7.1.3",
75
75
  "@mantine/notifications": "^7.1.3",
76
76
  "@tabler/icons-react": "^2.39.0",
77
- "@types/lodash": "^4.14.199",
77
+ "@types/lodash": "^4.14.200",
78
78
  "@types/node": "^20.8.6",
79
79
  "@types/react": "^18.2.28",
80
80
  "@types/react-dom": "^18.2.13",
@@ -101,6 +101,7 @@
101
101
  },
102
102
  "peerDependencies": {
103
103
  "@mantine/core": ">=7",
104
- "@mantine/hooks": ">=7"
104
+ "@mantine/hooks": ">=7",
105
+ "clsx": ">=2"
105
106
  }
106
107
  }