@mantine-vue/core 2.3.0 → 2.3.1
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/cjs/index.cjs +20 -12
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +20 -12
- package/esm/index.mjs.map +1 -1
- package/lib/components/Popover/Popover.d.ts +10 -2
- package/lib/components/Popover/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FlipOptions, type InlineOptions, type ShiftOptions, type SizeOptions } from '@floating-ui/vue';
|
|
1
2
|
import { type PropType, type VNode } from 'vue';
|
|
2
3
|
import { type ArrowPosition, type FloatingAxesOffsets, type FloatingPosition, type FloatingStrategy } from '../../utils/Floating';
|
|
3
4
|
export interface PopoverProps {
|
|
@@ -10,7 +11,7 @@ export interface PopoverProps {
|
|
|
10
11
|
onOpen?: () => void;
|
|
11
12
|
onClose?: () => void;
|
|
12
13
|
onDismiss?: () => void;
|
|
13
|
-
width?:
|
|
14
|
+
width?: PopoverWidth;
|
|
14
15
|
withArrow?: boolean;
|
|
15
16
|
arrowSize?: number;
|
|
16
17
|
arrowOffset?: number;
|
|
@@ -28,7 +29,7 @@ export interface PopoverProps {
|
|
|
28
29
|
transitionProps?: Record<string, any>;
|
|
29
30
|
zIndex?: string | number;
|
|
30
31
|
floatingStrategy?: FloatingStrategy;
|
|
31
|
-
middlewares?:
|
|
32
|
+
middlewares?: PopoverMiddlewares;
|
|
32
33
|
id?: string;
|
|
33
34
|
targetProps?: Record<string, any>;
|
|
34
35
|
withOverlay?: boolean;
|
|
@@ -40,6 +41,13 @@ export interface PopoverProps {
|
|
|
40
41
|
vars?: any;
|
|
41
42
|
unstyled?: boolean;
|
|
42
43
|
}
|
|
44
|
+
export type PopoverWidth = 'target' | string | number | null;
|
|
45
|
+
export interface PopoverMiddlewares {
|
|
46
|
+
shift?: boolean | ShiftOptions;
|
|
47
|
+
flip?: boolean | FlipOptions;
|
|
48
|
+
inline?: boolean | InlineOptions;
|
|
49
|
+
size?: boolean | SizeOptions;
|
|
50
|
+
}
|
|
43
51
|
export declare const PopoverTarget: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
44
52
|
refProp: {
|
|
45
53
|
type: StringConstructor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Popover, PopoverTarget, PopoverDropdown, PopoverContextMenu } from './Popover';
|
|
2
|
-
export type { PopoverProps, PopoverStylesNames, PopoverCssVariables, PopoverTargetProps, PopoverDropdownProps, PopoverContextMenuProps, } from './Popover';
|
|
2
|
+
export type { PopoverProps, PopoverStylesNames, PopoverCssVariables, PopoverTargetProps, PopoverDropdownProps, PopoverContextMenuProps, PopoverMiddlewares, PopoverWidth, } from './Popover';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Vue component foundation architecturally equivalent to @mantine/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine-vue/hooks": "2.3.
|
|
48
|
-
"@mantine-vue/utils": "2.3.
|
|
47
|
+
"@mantine-vue/hooks": "2.3.1",
|
|
48
|
+
"@mantine-vue/utils": "2.3.1",
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
}
|
|
51
51
|
}
|