mantine-contextmenu 9.2.1 → 9.3.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 +5 -6
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { MantineStyleProp, MantineColor, StylesRecord, MantineShadow, MantineRadius } from '@mantine/core';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import { JSX } from 'react';
|
|
3
|
+
import { MantineStyleProp, MantineColor, StylesRecord, MantineShadow, MantineRadius } from '@mantine/core';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Utility type that makes a property required
|
|
@@ -165,14 +164,14 @@ options?: ContextMenuOptions) => React.MouseEventHandler & React.TouchEventHandl
|
|
|
165
164
|
type HideContextMenuFunction = () => void;
|
|
166
165
|
|
|
167
166
|
type ContextMenuDividerProps = Pick<ContextMenuItemOptions, 'className' | 'style'>;
|
|
168
|
-
declare function ContextMenuDivider({ className, style }: ContextMenuDividerProps):
|
|
167
|
+
declare function ContextMenuDivider({ className, style }: ContextMenuDividerProps): react.JSX.Element;
|
|
169
168
|
|
|
170
169
|
declare function ContextMenuItem({ className, style, icon, iconRight, title, color, disabled, onClick, onHide, items, submenuProps, }: WithRequiredProperty<Omit<ContextMenuItemOptions, 'key'>, 'title'> & {
|
|
171
170
|
onHide: () => void;
|
|
172
171
|
submenuProps: Pick<ContextMenuOptions, 'className' | 'classNames' | 'style' | 'styles'> & {
|
|
173
172
|
dir?: 'ltr' | 'rtl';
|
|
174
173
|
};
|
|
175
|
-
}):
|
|
174
|
+
}): react.JSX.Element;
|
|
176
175
|
|
|
177
176
|
type ContextMenuInstanceOptions = {
|
|
178
177
|
x: number;
|
|
@@ -188,7 +187,7 @@ type ContextMenuPortalProps = ContextMenuProps & {
|
|
|
188
187
|
zIndex?: number;
|
|
189
188
|
dir: 'ltr' | 'rtl';
|
|
190
189
|
};
|
|
191
|
-
declare function ContextMenuPortal({ onHide, zIndex, dir, ...otherProps }: ContextMenuPortalProps):
|
|
190
|
+
declare function ContextMenuPortal({ onHide, zIndex, dir, ...otherProps }: ContextMenuPortalProps): react.JSX.Element;
|
|
192
191
|
|
|
193
192
|
declare const ContextMenuSettingsCtx: react.Context<WithRequiredProperty<ContextMenuSettings, "shadow" | "borderRadius" | "submenuDelay">>;
|
|
194
193
|
declare const ContextMenuCtx: react.Context<{
|
|
@@ -210,7 +209,7 @@ declare const ContextMenuCtx: react.Context<{
|
|
|
210
209
|
* If you wrap your application with this provider, you can use the `useContextMenu` hook
|
|
211
210
|
* anywhere in the component tree to access a function that shows the context menu.
|
|
212
211
|
*/
|
|
213
|
-
declare function ContextMenuProvider({ zIndex, shadow, borderRadius, submenuDelay, repositionOnRepeat, children, }: ContextMenuProviderProps):
|
|
212
|
+
declare function ContextMenuProvider({ zIndex, shadow, borderRadius, submenuDelay, repositionOnRepeat, children, }: ContextMenuProviderProps): react.JSX.Element;
|
|
214
213
|
/**
|
|
215
214
|
* Hook returning functions that show and hide the context menu.
|
|
216
215
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mantine-contextmenu",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Craft your applications for productivity and meet your users’ expectations by enhancing your Mantine-based UIs with a desktop-grade, lightweight yet fully-featured, dark-theme aware context-menu component, built by the creator of Mantine DataTable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -75,30 +75,30 @@
|
|
|
75
75
|
"format": "biome format --write . && prettier --write \"**/*.css\""
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@biomejs/biome": "^2.4.
|
|
79
|
-
"@mantine/code-highlight": "^9.
|
|
80
|
-
"@mantine/core": "^9.
|
|
81
|
-
"@mantine/hooks": "^9.
|
|
82
|
-
"@mantine/notifications": "^9.
|
|
78
|
+
"@biomejs/biome": "^2.4.16",
|
|
79
|
+
"@mantine/code-highlight": "^9.3.1",
|
|
80
|
+
"@mantine/core": "^9.3.1",
|
|
81
|
+
"@mantine/hooks": "^9.3.1",
|
|
82
|
+
"@mantine/notifications": "^9.3.1",
|
|
83
83
|
"@tabler/icons-react": "^3.44.0",
|
|
84
84
|
"@types/lodash": "^4.17.24",
|
|
85
|
-
"@types/node": "^25.
|
|
86
|
-
"@types/react": "^19.2.
|
|
85
|
+
"@types/node": "^25.9.3",
|
|
86
|
+
"@types/react": "^19.2.17",
|
|
87
87
|
"@types/react-dom": "^19.2.3",
|
|
88
88
|
"clsx": "^2.1.1",
|
|
89
|
-
"cssnano": "^8.0.
|
|
89
|
+
"cssnano": "^8.0.2",
|
|
90
90
|
"lodash": "^4.18.1",
|
|
91
|
-
"next": "^16.2.
|
|
92
|
-
"postcss": "^8.5.
|
|
91
|
+
"next": "^16.2.9",
|
|
92
|
+
"postcss": "^8.5.15",
|
|
93
93
|
"postcss-cli": "^11.0.1",
|
|
94
94
|
"postcss-import": "^16.1.1",
|
|
95
95
|
"postcss-preset-mantine": "^1.18.0",
|
|
96
96
|
"postcss-simple-vars": "^7.0.1",
|
|
97
|
-
"prettier": "^3.8.
|
|
98
|
-
"react": "^19.2.
|
|
99
|
-
"react-dom": "^19.2.
|
|
100
|
-
"sharp": "^0.
|
|
101
|
-
"shiki": "^4.0
|
|
97
|
+
"prettier": "^3.8.4",
|
|
98
|
+
"react": "^19.2.7",
|
|
99
|
+
"react-dom": "^19.2.7",
|
|
100
|
+
"sharp": "^0.35.1",
|
|
101
|
+
"shiki": "^4.2.0",
|
|
102
102
|
"swr": "^2.4.1",
|
|
103
103
|
"tsup": "^8.5.1",
|
|
104
104
|
"typescript": "^6.0.3"
|