@mantine-vue/core 3.4.0 → 3.6.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/cjs/index.cjs +4651 -1619
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +4631 -1621
- package/esm/index.mjs.map +1 -1
- package/lib/components/ActionBar/ActionBar.vue.d.ts +0 -2
- package/lib/components/AppShell/AppShell.context.d.ts +5 -0
- package/lib/components/AppShell/AppShell.types.d.ts +44 -2
- package/lib/components/AppShell/AppShellAside/AppShellAside.d.ts +3 -3
- package/lib/components/AppShell/AppShellFooter/AppShellFooter.d.ts +3 -3
- package/lib/components/AppShell/AppShellHeader/AppShellHeader.d.ts +3 -3
- package/lib/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.d.ts +9 -1
- package/lib/components/AppShell/AppShellMediaStyles/get-variables.d.ts +6 -2
- package/lib/components/AppShell/AppShellNavbar/AppShellNavbar.d.ts +3 -3
- package/lib/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.d.ts +23 -0
- package/lib/components/AppShell/create-app-shell-component.d.ts +3 -3
- package/lib/components/AppShell/index.d.ts +2 -0
- package/lib/components/AppShell/use-app-shell-resize/clamp-resize-size.d.ts +7 -0
- package/lib/components/AppShell/use-app-shell-resize/resize-section-config.d.ts +18 -0
- package/lib/components/AppShell/use-app-shell-resize/use-app-shell-resize.d.ts +6 -0
- package/lib/components/AppShell/use-resizing/use-resizing.d.ts +1 -0
- package/lib/components/Autocomplete/Autocomplete.d.ts +5 -5
- package/lib/components/Autocomplete/Autocomplete.vue.d.ts +2 -2
- package/lib/components/Avatar/Avatar.types.d.ts +2 -2
- package/lib/components/Cascader/Cascader.d.ts +5 -5
- package/lib/components/Cascader/Cascader.vue.d.ts +2 -2
- package/lib/components/Checkbox/Checkbox.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.types.d.ts +3 -2
- package/lib/components/Checkbox/Checkbox.vue.d.ts +1 -0
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.types.d.ts +2 -2
- package/lib/components/Combobox/get-combobox-label-id.d.ts +9 -0
- package/lib/components/Drawer/Drawer.context.d.ts +2 -0
- package/lib/components/HoverCard/HoverCard.context.d.ts +12 -0
- package/lib/components/HoverCard/HoverCard.d.ts +1 -1
- package/lib/components/HoverCard/HoverCard.types.d.ts +14 -0
- package/lib/components/HoverCard/index.d.ts +1 -1
- package/lib/components/HoverCard/use-hover-card.d.ts +3 -0
- package/lib/components/Menu/Menu.types.d.ts +4 -0
- package/lib/components/ModalBase/ModalBase.types.d.ts +2 -0
- package/lib/components/ModalBase/use-modal.d.ts +1 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +5 -5
- package/lib/components/MultiSelect/MultiSelect.vue.d.ts +2 -2
- package/lib/components/NumberInput/number-input-utils.d.ts +14 -1
- package/lib/components/PasswordInput/PasswordInputField.vue.d.ts +3 -0
- package/lib/components/Popover/Popover.types.d.ts +4 -0
- package/lib/components/Popover/Popover.vue.d.ts +2 -0
- package/lib/components/Portal/Portal.vue.d.ts +1 -3
- package/lib/components/Radio/Radio.d.ts +1 -0
- package/lib/components/Radio/Radio.types.d.ts +3 -2
- package/lib/components/Radio/Radio.vue.d.ts +1 -0
- package/lib/components/Radio/RadioIndicator/RadioIndicator.types.d.ts +2 -2
- package/lib/components/Select/Select.d.ts +5 -5
- package/lib/components/Select/Select.vue.d.ts +2 -2
- package/lib/components/Slider/Thumb/Thumb.d.ts +5 -5
- package/lib/components/Slider/Thumb/Thumb.vue.d.ts +2 -2
- package/lib/components/Table/index.d.ts +1 -1
- package/lib/components/TagsInput/TagsInput.d.ts +5 -5
- package/lib/components/TagsInput/TagsInput.vue.d.ts +2 -2
- package/lib/components/Toggle/Toggle.d.ts +15 -0
- package/lib/components/Toggle/Toggle.types.d.ts +55 -0
- package/lib/components/Toggle/Toggle.vue.d.ts +19 -0
- package/lib/components/Toggle/index.d.ts +1 -0
- package/lib/components/Toolbar/Toolbar.context.d.ts +12 -0
- package/lib/components/Toolbar/Toolbar.d.ts +26 -0
- package/lib/components/Toolbar/Toolbar.types.d.ts +90 -0
- package/lib/components/Toolbar/Toolbar.vue.d.ts +13 -0
- package/lib/components/Toolbar/ToolbarDivider.vue.d.ts +3 -0
- package/lib/components/Toolbar/ToolbarGroup.vue.d.ts +13 -0
- package/lib/components/Toolbar/ToolbarToggle.vue.d.ts +14 -0
- package/lib/components/Toolbar/ToolbarToggleGroup.vue.d.ts +19 -0
- package/lib/components/Toolbar/ToolbarToggleItem.vue.d.ts +14 -0
- package/lib/components/Toolbar/index.d.ts +1 -0
- package/lib/components/Tooltip/Tooltip.types.d.ts +2 -0
- package/lib/components/Tooltip/Tooltip.vue.d.ts +1 -0
- package/lib/components/Tooltip/use-tooltip.d.ts +2 -0
- package/lib/components/Tour/Tour.context.d.ts +27 -0
- package/lib/components/Tour/Tour.d.ts +184 -0
- package/lib/components/Tour/Tour.types.d.ts +131 -0
- package/lib/components/Tour/Tour.vue.d.ts +25 -0
- package/lib/components/Tour/TourBeacon.vue.d.ts +4 -0
- package/lib/components/Tour/TourBeaconPositioned.vue.d.ts +12 -0
- package/lib/components/Tour/TourBody.vue.d.ts +13 -0
- package/lib/components/Tour/TourCloseButton.vue.d.ts +3 -0
- package/lib/components/Tour/TourNavigation.vue.d.ts +3 -0
- package/lib/components/Tour/TourOverlay.vue.d.ts +8 -0
- package/lib/components/Tour/TourRoot.vue.d.ts +26 -0
- package/lib/components/Tour/TourStep.vue.d.ts +13 -0
- package/lib/components/Tour/TourTitle.vue.d.ts +13 -0
- package/lib/components/Tour/TourTooltip.vue.d.ts +14 -0
- package/lib/components/Tour/get-overlay-hit-path.d.ts +6 -0
- package/lib/components/Tour/index.d.ts +3 -0
- package/lib/components/Tour/is-element-in-view.d.ts +1 -0
- package/lib/components/TreeSelect/TreeSelect.d.ts +6 -6
- package/lib/components/TreeSelect/TreeSelect.types.d.ts +15 -0
- package/lib/components/TreeSelect/TreeSelect.vue.d.ts +2 -2
- package/lib/components/TreeSelect/index.d.ts +1 -1
- package/lib/components/index.d.ts +3 -0
- package/lib/core/Box/Box.d.ts +4 -4
- package/lib/core/MantineProvider/Mantine.context.d.ts +2 -2
- package/lib/core/MantineProvider/MantineProvider.d.ts +19 -19
- package/lib/core/MantineProvider/MantineThemeProvider.d.ts +9 -9
- package/lib/core/styles-api/styles-api.types.d.ts +2 -0
- package/lib/core/utils/extract-style-props.d.ts +14 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/utils/InlineInput/InlineInput.d.ts +1 -1
- package/package.json +3 -3
- package/styles.css +718 -176
- package/styles.layer.css +718 -176
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { AppShellResizeController, AppShellResizeSection } from './AppShell.types';
|
|
1
3
|
export interface AppShellContextValue {
|
|
2
4
|
getStyles: (selector: string, options?: any) => any;
|
|
3
5
|
withBorder?: boolean;
|
|
@@ -5,5 +7,8 @@ export interface AppShellContextValue {
|
|
|
5
7
|
disabled?: boolean;
|
|
6
8
|
offsetScrollbars?: boolean;
|
|
7
9
|
mode: 'fixed' | 'static';
|
|
10
|
+
resize?: AppShellResizeController;
|
|
11
|
+
rootRef: Ref<Element | null>;
|
|
12
|
+
resizeOffsets: Partial<Record<AppShellResizeSection, boolean>>;
|
|
8
13
|
}
|
|
9
14
|
export declare const provideAppShellContext: (value: AppShellContextValue) => void, useAppShellContext: () => AppShellContextValue;
|
|
@@ -47,6 +47,46 @@ export interface AppShellCompoundProps {
|
|
|
47
47
|
withBorder?: boolean;
|
|
48
48
|
zIndex?: string | number;
|
|
49
49
|
}
|
|
50
|
+
export type AppShellResizeSection = 'navbar' | 'aside' | 'header' | 'footer';
|
|
51
|
+
export type AppShellResizeSizes = Partial<Record<AppShellResizeSection, number>>;
|
|
52
|
+
export interface AppShellResizeSectionOptions {
|
|
53
|
+
min?: number;
|
|
54
|
+
max?: number;
|
|
55
|
+
collapseThreshold?: number;
|
|
56
|
+
label?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface AppShellResizeSectionController {
|
|
59
|
+
enabled: boolean;
|
|
60
|
+
size: number | undefined;
|
|
61
|
+
active: boolean;
|
|
62
|
+
setSize: (size: number) => void;
|
|
63
|
+
reset: () => void;
|
|
64
|
+
}
|
|
65
|
+
export interface AppShellResizeController {
|
|
66
|
+
navbar: AppShellResizeSectionController;
|
|
67
|
+
aside: AppShellResizeSectionController;
|
|
68
|
+
header: AppShellResizeSectionController;
|
|
69
|
+
footer: AppShellResizeSectionController;
|
|
70
|
+
sizes: AppShellResizeSizes;
|
|
71
|
+
resetAll: () => void;
|
|
72
|
+
options: Partial<Record<AppShellResizeSection, AppShellResizeSectionOptions>>;
|
|
73
|
+
activeSection: AppShellResizeSection | null;
|
|
74
|
+
startResize: (section: AppShellResizeSection) => void;
|
|
75
|
+
previewResize: (section: AppShellResizeSection, size: number) => void;
|
|
76
|
+
endResize: (section: AppShellResizeSection, size: number | null) => void;
|
|
77
|
+
initCollapse: (section: AppShellResizeSection, collapsed: boolean) => void;
|
|
78
|
+
reportCollapse: (section: AppShellResizeSection, collapsed: boolean) => void;
|
|
79
|
+
}
|
|
80
|
+
export interface UseAppShellResizeInput {
|
|
81
|
+
navbar?: AppShellResizeSectionOptions;
|
|
82
|
+
aside?: AppShellResizeSectionOptions;
|
|
83
|
+
header?: AppShellResizeSectionOptions;
|
|
84
|
+
footer?: AppShellResizeSectionOptions;
|
|
85
|
+
initialSizes?: AppShellResizeSizes;
|
|
86
|
+
onResize?: (sizes: AppShellResizeSizes) => void;
|
|
87
|
+
onResizeEnd?: (sizes: AppShellResizeSizes) => void;
|
|
88
|
+
onCollapseChange?: (section: AppShellResizeSection, collapsed: boolean) => void;
|
|
89
|
+
}
|
|
50
90
|
/** Slots of `AppShell`. */
|
|
51
91
|
export interface AppShellSlots {
|
|
52
92
|
/** `AppShell.Header`, `AppShell.Navbar`, `AppShell.Main` and the other sections. */
|
|
@@ -120,14 +160,16 @@ export interface AppShellOwnProps extends StylesApiProps<AppShellFactory> {
|
|
|
120
160
|
* @default 'fixed'
|
|
121
161
|
*/
|
|
122
162
|
mode?: AppShellMode;
|
|
163
|
+
/** `useAppShellResize` composable instance, enables resizing configured sections. */
|
|
164
|
+
resize?: AppShellResizeController;
|
|
123
165
|
/** Element modifiers transformed into `data-` attributes, for example, `{ 'data-size': 'xl' }`, falsy values are removed */
|
|
124
166
|
mod?: BoxMod;
|
|
125
167
|
}
|
|
126
168
|
export interface AppShellProps extends Omit<BoxProps, keyof AppShellOwnProps>, AppShellOwnProps {
|
|
127
169
|
}
|
|
128
|
-
export type AppShellStylesNames = 'root';
|
|
170
|
+
export type AppShellStylesNames = 'root' | 'navbar' | 'main' | 'header' | 'footer' | 'aside' | 'section' | 'resizeHandle';
|
|
129
171
|
export type AppShellCssVariables = {
|
|
130
|
-
root: '--app-shell-transition-duration';
|
|
172
|
+
root: '--app-shell-transition-duration' | '--app-shell-transition-timing-function' | '--app-shell-resize-handle-size';
|
|
131
173
|
};
|
|
132
174
|
export type AppShellFactory = Factory<{
|
|
133
175
|
props: Omit<AppShellProps, 'rootRef'>;
|
|
@@ -23,8 +23,8 @@ export declare const AppShellAside: {
|
|
|
23
23
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
|
-
mod: any;
|
|
27
26
|
zIndex: string | number;
|
|
27
|
+
mod: any;
|
|
28
28
|
classNames: Function | Record<string, any>;
|
|
29
29
|
styles: Function | Record<string, any>;
|
|
30
30
|
withBorder: boolean;
|
|
@@ -59,8 +59,8 @@ export declare const AppShellAside: {
|
|
|
59
59
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
60
|
[key: string]: any;
|
|
61
61
|
}> | null, {}, {}, {}, {
|
|
62
|
-
mod: any;
|
|
63
62
|
zIndex: string | number;
|
|
63
|
+
mod: any;
|
|
64
64
|
classNames: Function | Record<string, any>;
|
|
65
65
|
styles: Function | Record<string, any>;
|
|
66
66
|
withBorder: boolean;
|
|
@@ -92,8 +92,8 @@ export declare const AppShellAside: {
|
|
|
92
92
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
95
|
-
mod: any;
|
|
96
95
|
zIndex: string | number;
|
|
96
|
+
mod: any;
|
|
97
97
|
classNames: Function | Record<string, any>;
|
|
98
98
|
styles: Function | Record<string, any>;
|
|
99
99
|
withBorder: boolean;
|
|
@@ -23,8 +23,8 @@ export declare const AppShellFooter: {
|
|
|
23
23
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
|
-
mod: any;
|
|
27
26
|
zIndex: string | number;
|
|
27
|
+
mod: any;
|
|
28
28
|
classNames: Function | Record<string, any>;
|
|
29
29
|
styles: Function | Record<string, any>;
|
|
30
30
|
withBorder: boolean;
|
|
@@ -59,8 +59,8 @@ export declare const AppShellFooter: {
|
|
|
59
59
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
60
|
[key: string]: any;
|
|
61
61
|
}> | null, {}, {}, {}, {
|
|
62
|
-
mod: any;
|
|
63
62
|
zIndex: string | number;
|
|
63
|
+
mod: any;
|
|
64
64
|
classNames: Function | Record<string, any>;
|
|
65
65
|
styles: Function | Record<string, any>;
|
|
66
66
|
withBorder: boolean;
|
|
@@ -92,8 +92,8 @@ export declare const AppShellFooter: {
|
|
|
92
92
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
95
|
-
mod: any;
|
|
96
95
|
zIndex: string | number;
|
|
96
|
+
mod: any;
|
|
97
97
|
classNames: Function | Record<string, any>;
|
|
98
98
|
styles: Function | Record<string, any>;
|
|
99
99
|
withBorder: boolean;
|
|
@@ -23,8 +23,8 @@ export declare const AppShellHeader: {
|
|
|
23
23
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
|
-
mod: any;
|
|
27
26
|
zIndex: string | number;
|
|
27
|
+
mod: any;
|
|
28
28
|
classNames: Function | Record<string, any>;
|
|
29
29
|
styles: Function | Record<string, any>;
|
|
30
30
|
withBorder: boolean;
|
|
@@ -59,8 +59,8 @@ export declare const AppShellHeader: {
|
|
|
59
59
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
60
|
[key: string]: any;
|
|
61
61
|
}> | null, {}, {}, {}, {
|
|
62
|
-
mod: any;
|
|
63
62
|
zIndex: string | number;
|
|
63
|
+
mod: any;
|
|
64
64
|
classNames: Function | Record<string, any>;
|
|
65
65
|
styles: Function | Record<string, any>;
|
|
66
66
|
withBorder: boolean;
|
|
@@ -92,8 +92,8 @@ export declare const AppShellHeader: {
|
|
|
92
92
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
95
|
-
mod: any;
|
|
96
95
|
zIndex: string | number;
|
|
96
|
+
mod: any;
|
|
97
97
|
classNames: Function | Record<string, any>;
|
|
98
98
|
styles: Function | Record<string, any>;
|
|
99
99
|
withBorder: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import type { AppShellAsideConfiguration, AppShellFooterConfiguration, AppShellHeaderConfiguration, AppShellNavbarConfiguration, AppShellResponsiveSize, AppShellSize } from '../AppShell.types';
|
|
2
|
+
import type { AppShellAsideConfiguration, AppShellFooterConfiguration, AppShellHeaderConfiguration, AppShellNavbarConfiguration, AppShellResponsiveSize, AppShellSize, AppShellResizeSection, AppShellResizeSizes } from '../AppShell.types';
|
|
3
3
|
export declare const AppShellMediaStyles: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
navbar: PropType<AppShellNavbarConfiguration>;
|
|
5
5
|
aside: PropType<AppShellAsideConfiguration>;
|
|
@@ -11,6 +11,10 @@ export declare const AppShellMediaStyles: import("vue").DefineComponent<import("
|
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
selector: StringConstructor;
|
|
14
|
+
resize: PropType<{
|
|
15
|
+
sizes: AppShellResizeSizes;
|
|
16
|
+
enabled: Partial<Record<AppShellResizeSection, boolean>>;
|
|
17
|
+
}>;
|
|
14
18
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
19
|
[key: string]: any;
|
|
16
20
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -24,4 +28,8 @@ export declare const AppShellMediaStyles: import("vue").DefineComponent<import("
|
|
|
24
28
|
required: true;
|
|
25
29
|
};
|
|
26
30
|
selector: StringConstructor;
|
|
31
|
+
resize: PropType<{
|
|
32
|
+
sizes: AppShellResizeSizes;
|
|
33
|
+
enabled: Partial<Record<AppShellResizeSection, boolean>>;
|
|
34
|
+
}>;
|
|
27
35
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type MantineTheme } from '../../../core';
|
|
2
|
-
import type { AppShellAsideConfiguration, AppShellFooterConfiguration, AppShellHeaderConfiguration, AppShellNavbarConfiguration, AppShellResponsiveSize, AppShellSize } from '../AppShell.types';
|
|
2
|
+
import type { AppShellAsideConfiguration, AppShellFooterConfiguration, AppShellHeaderConfiguration, AppShellNavbarConfiguration, AppShellResponsiveSize, AppShellSize, AppShellResizeSection, AppShellResizeSizes } from '../AppShell.types';
|
|
3
3
|
export type CSSVariables = Record<`--${string}`, string | undefined>;
|
|
4
4
|
export type MediaQueryVariables = Record<string, CSSVariables>;
|
|
5
|
-
export declare function getVariables({ navbar, aside, header, footer, padding, theme, mode, }: {
|
|
5
|
+
export declare function getVariables({ navbar, aside, header, footer, padding, theme, mode, resize, }: {
|
|
6
6
|
navbar?: AppShellNavbarConfiguration;
|
|
7
7
|
aside?: AppShellAsideConfiguration;
|
|
8
8
|
header?: AppShellHeaderConfiguration;
|
|
@@ -10,6 +10,10 @@ export declare function getVariables({ navbar, aside, header, footer, padding, t
|
|
|
10
10
|
padding?: AppShellSize | AppShellResponsiveSize;
|
|
11
11
|
theme: MantineTheme;
|
|
12
12
|
mode: 'fixed' | 'static';
|
|
13
|
+
resize?: {
|
|
14
|
+
sizes: AppShellResizeSizes;
|
|
15
|
+
enabled: Partial<Record<AppShellResizeSection, boolean>>;
|
|
16
|
+
};
|
|
13
17
|
}): {
|
|
14
18
|
baseStyles: CSSVariables;
|
|
15
19
|
media: {
|
|
@@ -23,8 +23,8 @@ export declare const AppShellNavbar: {
|
|
|
23
23
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
|
-
mod: any;
|
|
27
26
|
zIndex: string | number;
|
|
27
|
+
mod: any;
|
|
28
28
|
classNames: Function | Record<string, any>;
|
|
29
29
|
styles: Function | Record<string, any>;
|
|
30
30
|
withBorder: boolean;
|
|
@@ -59,8 +59,8 @@ export declare const AppShellNavbar: {
|
|
|
59
59
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
60
|
[key: string]: any;
|
|
61
61
|
}> | null, {}, {}, {}, {
|
|
62
|
-
mod: any;
|
|
63
62
|
zIndex: string | number;
|
|
63
|
+
mod: any;
|
|
64
64
|
classNames: Function | Record<string, any>;
|
|
65
65
|
styles: Function | Record<string, any>;
|
|
66
66
|
withBorder: boolean;
|
|
@@ -92,8 +92,8 @@ export declare const AppShellNavbar: {
|
|
|
92
92
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
93
|
[key: string]: any;
|
|
94
94
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
95
|
-
mod: any;
|
|
96
95
|
zIndex: string | number;
|
|
96
|
+
mod: any;
|
|
97
97
|
classNames: Function | Record<string, any>;
|
|
98
98
|
styles: Function | Record<string, any>;
|
|
99
99
|
withBorder: boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { AppShellResizeSection } from '../AppShell.types';
|
|
3
|
+
export declare const AppShellResizeHandle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
section: {
|
|
5
|
+
type: PropType<AppShellResizeSection>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
sectionId: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
section: {
|
|
16
|
+
type: PropType<AppShellResizeSection>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
sectionId: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -24,8 +24,8 @@ export declare function createAppShellComponent(name: string, selector: 'header'
|
|
|
24
24
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
27
|
-
mod: any;
|
|
28
27
|
zIndex: string | number;
|
|
28
|
+
mod: any;
|
|
29
29
|
classNames: Function | Record<string, any>;
|
|
30
30
|
styles: Function | Record<string, any>;
|
|
31
31
|
withBorder: boolean;
|
|
@@ -60,8 +60,8 @@ export declare function createAppShellComponent(name: string, selector: 'header'
|
|
|
60
60
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
61
|
[key: string]: any;
|
|
62
62
|
}> | null, {}, {}, {}, {
|
|
63
|
-
mod: any;
|
|
64
63
|
zIndex: string | number;
|
|
64
|
+
mod: any;
|
|
65
65
|
classNames: Function | Record<string, any>;
|
|
66
66
|
styles: Function | Record<string, any>;
|
|
67
67
|
withBorder: boolean;
|
|
@@ -93,8 +93,8 @@ export declare function createAppShellComponent(name: string, selector: 'header'
|
|
|
93
93
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
94
|
[key: string]: any;
|
|
95
95
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
96
|
-
mod: any;
|
|
97
96
|
zIndex: string | number;
|
|
97
|
+
mod: any;
|
|
98
98
|
classNames: Function | Record<string, any>;
|
|
99
99
|
styles: Function | Record<string, any>;
|
|
100
100
|
withBorder: boolean;
|
|
@@ -9,6 +9,8 @@ export { AppShellNavbar } from './AppShellNavbar/AppShellNavbar';
|
|
|
9
9
|
export { AppShellSection } from './AppShellSection/AppShellSection';
|
|
10
10
|
export type { AppShellSectionOwnProps, AppShellSectionProps, AppShellSectionSlots, } from './AppShellSection/AppShellSection';
|
|
11
11
|
export { useAppShellContext } from './AppShell.context';
|
|
12
|
+
export { useAppShellResize } from './use-app-shell-resize/use-app-shell-resize';
|
|
13
|
+
export type { UseAppShellResizeOptions } from './use-app-shell-resize/use-app-shell-resize';
|
|
12
14
|
export type { AppShellContextValue } from './AppShell.context';
|
|
13
15
|
export type * from './AppShell.types';
|
|
14
16
|
export { getVariables as getAppShellVariables } from './AppShellMediaStyles/get-variables';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function clampResizeSize({ size, min, max, viewportMax, }: {
|
|
2
|
+
size: number;
|
|
3
|
+
min: number | undefined;
|
|
4
|
+
max: number | undefined;
|
|
5
|
+
viewportMax: number;
|
|
6
|
+
}): number;
|
|
7
|
+
export declare function getCollapseState(size: number, collapseThreshold: number | undefined): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AppShellResizeSection } from '../AppShell.types';
|
|
2
|
+
export interface ResizeSectionConfig {
|
|
3
|
+
axis: 'horizontal' | 'vertical';
|
|
4
|
+
orientation: 'vertical' | 'horizontal';
|
|
5
|
+
sizeVariable: string;
|
|
6
|
+
offsetVariable: string;
|
|
7
|
+
gridWidthVariable?: string;
|
|
8
|
+
safeAreaVariable?: string;
|
|
9
|
+
sign: 1 | -1;
|
|
10
|
+
}
|
|
11
|
+
export declare const RESIZE_SECTIONS: Record<AppShellResizeSection, ResizeSectionConfig>;
|
|
12
|
+
export declare const RESIZE_SECTION_NAMES: AppShellResizeSection[];
|
|
13
|
+
export declare function getResizeDelta({ section, deltaX, deltaY, dir, }: {
|
|
14
|
+
section: AppShellResizeSection;
|
|
15
|
+
deltaX: number;
|
|
16
|
+
deltaY: number;
|
|
17
|
+
dir: 'ltr' | 'rtl';
|
|
18
|
+
}): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { AppShellResizeController, UseAppShellResizeInput } from '../AppShell.types';
|
|
3
|
+
export type UseAppShellResizeOptions = {
|
|
4
|
+
[Key in keyof UseAppShellResizeInput]?: MaybeRefOrGetter<UseAppShellResizeInput[Key]>;
|
|
5
|
+
};
|
|
6
|
+
export declare function useAppShellResize(input?: UseAppShellResizeOptions): AppShellResizeController;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const Autocomplete: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Autocomplete.types").AutocompleteOwnProps> & Readonly<{
|
|
3
|
-
onClear?: (() => any) | undefined;
|
|
4
3
|
onChange?: ((value: string) => any) | undefined;
|
|
4
|
+
onClear?: (() => any) | undefined;
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
6
|
"onOption-submit"?: ((value: string) => any) | undefined;
|
|
7
7
|
"onDropdown-open"?: (() => any) | undefined;
|
|
8
8
|
"onDropdown-close"?: (() => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
clear: () => any;
|
|
11
10
|
change: (value: string) => any;
|
|
11
|
+
clear: () => any;
|
|
12
12
|
"update:modelValue": (value: string) => any;
|
|
13
13
|
"option-submit": (value: string) => any;
|
|
14
14
|
"dropdown-open": () => any;
|
|
@@ -21,8 +21,8 @@ export declare const Autocomplete: {
|
|
|
21
21
|
M: {};
|
|
22
22
|
Defaults: {};
|
|
23
23
|
}, Readonly<import("./Autocomplete.types").AutocompleteOwnProps> & Readonly<{
|
|
24
|
-
onClear?: (() => any) | undefined;
|
|
25
24
|
onChange?: ((value: string) => any) | undefined;
|
|
25
|
+
onClear?: (() => any) | undefined;
|
|
26
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
27
|
"onOption-submit"?: ((value: string) => any) | undefined;
|
|
28
28
|
"onDropdown-open"?: (() => any) | undefined;
|
|
@@ -32,15 +32,15 @@ export declare const Autocomplete: {
|
|
|
32
32
|
__isTeleport?: never;
|
|
33
33
|
__isSuspense?: never;
|
|
34
34
|
} & import("vue").ComponentOptionsBase<Readonly<import("./Autocomplete.types").AutocompleteOwnProps> & Readonly<{
|
|
35
|
-
onClear?: (() => any) | undefined;
|
|
36
35
|
onChange?: ((value: string) => any) | undefined;
|
|
36
|
+
onClear?: (() => any) | undefined;
|
|
37
37
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
38
|
"onOption-submit"?: ((value: string) => any) | undefined;
|
|
39
39
|
"onDropdown-open"?: (() => any) | undefined;
|
|
40
40
|
"onDropdown-close"?: (() => any) | undefined;
|
|
41
41
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
-
clear: () => any;
|
|
43
42
|
change: (value: string) => any;
|
|
43
|
+
clear: () => any;
|
|
44
44
|
"update:modelValue": (value: string) => any;
|
|
45
45
|
"option-submit": (value: string) => any;
|
|
46
46
|
"dropdown-open": () => any;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { AutocompleteOwnProps, AutocompleteSlots } from './Autocomplete.types';
|
|
2
2
|
type __VLS_Slots = AutocompleteSlots;
|
|
3
3
|
declare const __VLS_base: import("vue").DefineComponent<AutocompleteOwnProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
-
clear: () => any;
|
|
5
4
|
change: (value: string) => any;
|
|
5
|
+
clear: () => any;
|
|
6
6
|
"update:modelValue": (value: string) => any;
|
|
7
7
|
"option-submit": (value: string) => any;
|
|
8
8
|
"dropdown-open": () => any;
|
|
9
9
|
"dropdown-close": () => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<AutocompleteOwnProps> & Readonly<{
|
|
11
|
-
onClear?: (() => any) | undefined;
|
|
12
11
|
onChange?: ((value: string) => any) | undefined;
|
|
12
|
+
onClear?: (() => any) | undefined;
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
14
|
"onOption-submit"?: ((value: string) => any) | undefined;
|
|
15
15
|
"onDropdown-open"?: (() => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VNodeChild } from 'vue';
|
|
1
|
+
import type { ImgHTMLAttributes, VNodeChild } from 'vue';
|
|
2
2
|
import type { VueRefTarget } from '@mantine-vue/hooks';
|
|
3
3
|
import type { BoxMod, BoxProps, MantineColor, MantineGradient, MantineRadius, MantineSize, StylesApiProps, PolymorphicFactory, MantineElementType } from '../../core';
|
|
4
4
|
import type { AvatarGroup } from './AvatarGroup/AvatarGroup';
|
|
@@ -42,7 +42,7 @@ export interface AvatarOwnProps extends StylesApiProps<AvatarProps> {
|
|
|
42
42
|
/** Image `alt` attribute, also used as `title` attribute for placeholder */
|
|
43
43
|
alt?: string;
|
|
44
44
|
/** Attributes passed down to `img` element */
|
|
45
|
-
imageProps?:
|
|
45
|
+
imageProps?: ImgHTMLAttributes;
|
|
46
46
|
/** If set, adjusts text color based on background color for `filled` variant */
|
|
47
47
|
autoContrast?: boolean;
|
|
48
48
|
/** Name of the user. When `src` is not set, used to display initials and to generate color when `color="initials"` is set. */
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const Cascader: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
|
-
onClear?: (() => any) | undefined;
|
|
4
3
|
onChange?: ((value: string[] | null, options: import("./Cascader.types").CascaderOption[]) => any) | undefined;
|
|
4
|
+
onClear?: (() => any) | undefined;
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string[] | null) => any) | undefined;
|
|
6
6
|
"onDropdown-open"?: (() => any) | undefined;
|
|
7
7
|
"onDropdown-close"?: (() => any) | undefined;
|
|
8
8
|
"onSearch-change"?: ((value: string) => any) | undefined;
|
|
9
9
|
"onUpdate:searchValue"?: ((value: string) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
clear: () => any;
|
|
12
11
|
change: (value: string[] | null, options: import("./Cascader.types").CascaderOption[]) => any;
|
|
12
|
+
clear: () => any;
|
|
13
13
|
"update:modelValue": (value: string[] | null) => any;
|
|
14
14
|
"dropdown-open": () => any;
|
|
15
15
|
"dropdown-close": () => any;
|
|
@@ -23,8 +23,8 @@ export declare const Cascader: {
|
|
|
23
23
|
M: {};
|
|
24
24
|
Defaults: {};
|
|
25
25
|
}, Readonly<{}> & Readonly<{
|
|
26
|
-
onClear?: (() => any) | undefined;
|
|
27
26
|
onChange?: ((value: string[] | null, options: import("./Cascader.types").CascaderOption[]) => any) | undefined;
|
|
27
|
+
onClear?: (() => any) | undefined;
|
|
28
28
|
"onUpdate:modelValue"?: ((value: string[] | null) => any) | undefined;
|
|
29
29
|
"onDropdown-open"?: (() => any) | undefined;
|
|
30
30
|
"onDropdown-close"?: (() => any) | undefined;
|
|
@@ -35,16 +35,16 @@ export declare const Cascader: {
|
|
|
35
35
|
__isTeleport?: never;
|
|
36
36
|
__isSuspense?: never;
|
|
37
37
|
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
38
|
-
onClear?: (() => any) | undefined;
|
|
39
38
|
onChange?: ((value: string[] | null, options: import("./Cascader.types").CascaderOption[]) => any) | undefined;
|
|
39
|
+
onClear?: (() => any) | undefined;
|
|
40
40
|
"onUpdate:modelValue"?: ((value: string[] | null) => any) | undefined;
|
|
41
41
|
"onDropdown-open"?: (() => any) | undefined;
|
|
42
42
|
"onDropdown-close"?: (() => any) | undefined;
|
|
43
43
|
"onSearch-change"?: ((value: string) => any) | undefined;
|
|
44
44
|
"onUpdate:searchValue"?: ((value: string) => any) | undefined;
|
|
45
45
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
-
clear: () => any;
|
|
47
46
|
change: (value: string[] | null, options: import("./Cascader.types").CascaderOption[]) => any;
|
|
47
|
+
clear: () => any;
|
|
48
48
|
"update:modelValue": (value: string[] | null) => any;
|
|
49
49
|
"dropdown-open": () => any;
|
|
50
50
|
"dropdown-close": () => any;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { CascaderOption, CascaderSlots } from './Cascader.types';
|
|
2
2
|
type __VLS_Slots = CascaderSlots;
|
|
3
3
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
-
clear: () => any;
|
|
5
4
|
change: (value: string[] | null, options: CascaderOption[]) => any;
|
|
5
|
+
clear: () => any;
|
|
6
6
|
"update:modelValue": (value: string[] | null) => any;
|
|
7
7
|
"dropdown-open": () => any;
|
|
8
8
|
"dropdown-close": () => any;
|
|
9
9
|
"search-change": (value: string) => any;
|
|
10
10
|
"update:searchValue": (value: string) => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
12
|
-
onClear?: (() => any) | undefined;
|
|
13
12
|
onChange?: ((value: string[] | null, options: CascaderOption[]) => any) | undefined;
|
|
13
|
+
onClear?: (() => any) | undefined;
|
|
14
14
|
"onUpdate:modelValue"?: ((value: string[] | null) => any) | undefined;
|
|
15
15
|
"onDropdown-open"?: (() => any) | undefined;
|
|
16
16
|
"onDropdown-close"?: (() => any) | undefined;
|
|
@@ -4,10 +4,10 @@ import type { CheckboxGroup } from './CheckboxGroup/CheckboxGroup';
|
|
|
4
4
|
import type { VueRefTarget } from '@mantine-vue/hooks';
|
|
5
5
|
import type { Component, VNodeChild } from 'vue';
|
|
6
6
|
import type { BoxMod, BoxProps, MantineColor, MantineNode, MantineRadius, MantineSize, StylesApiProps, Factory } from '../../core';
|
|
7
|
-
export type CheckboxVariant = 'filled' | 'outline';
|
|
7
|
+
export type CheckboxVariant = 'filled' | 'outline' | 'light';
|
|
8
8
|
export type CheckboxStylesNames = 'icon' | 'inner' | 'input' | 'root' | 'body' | 'labelWrapper' | 'label' | 'description' | 'error';
|
|
9
9
|
export type CheckboxCssVariables = {
|
|
10
|
-
root: '--checkbox-size' | '--checkbox-radius' | '--checkbox-color' | '--checkbox-icon-color';
|
|
10
|
+
root: '--checkbox-size' | '--checkbox-radius' | '--checkbox-color' | '--checkbox-icon-color' | '--checkbox-bg';
|
|
11
11
|
};
|
|
12
12
|
export interface CheckboxIconSlotProps {
|
|
13
13
|
/** Whether the checkbox is in the indeterminate state. */
|
|
@@ -143,6 +143,7 @@ export type CheckboxFactory = Factory<{
|
|
|
143
143
|
ref: HTMLDivElement;
|
|
144
144
|
exposed: {
|
|
145
145
|
rootElement: Element | null;
|
|
146
|
+
inputElement: Element | null;
|
|
146
147
|
};
|
|
147
148
|
element: 'div';
|
|
148
149
|
stylesNames: CheckboxStylesNames;
|
|
@@ -21,6 +21,7 @@ declare const _default: typeof __VLS_export;
|
|
|
21
21
|
export default _default;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxOwnProps, {
|
|
23
23
|
rootElement: import("vue").Ref<Element | null, Element | null>;
|
|
24
|
+
inputElement: import("vue").Ref<Element | null, Element | null>;
|
|
24
25
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
26
|
change: (checked: boolean) => any;
|
|
26
27
|
"update:modelValue": (checked: boolean) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VNodeChild } from 'vue';
|
|
2
2
|
import type { BoxMod, BoxProps, MantineColor, MantineRadius, MantineSize, StylesApiProps, Factory } from '../../../core';
|
|
3
|
-
export type CheckboxIndicatorVariant = 'filled' | 'outline';
|
|
3
|
+
export type CheckboxIndicatorVariant = 'filled' | 'outline' | 'light';
|
|
4
4
|
/** Props declared by `CheckboxIndicator` itself. See `CheckboxIndicatorProps` for the full public type. */
|
|
5
5
|
export interface CheckboxIndicatorOwnProps extends StylesApiProps<CheckboxIndicatorFactory> {
|
|
6
6
|
/** Receives the root DOM node. */
|
|
@@ -64,7 +64,7 @@ export interface CheckboxIndicatorProps extends Omit<BoxProps, keyof CheckboxInd
|
|
|
64
64
|
}
|
|
65
65
|
export type CheckboxIndicatorStylesNames = 'icon' | 'indicator';
|
|
66
66
|
export type CheckboxIndicatorCssVariables = {
|
|
67
|
-
indicator: '--checkbox-size' | '--checkbox-radius' | '--checkbox-color' | '--checkbox-icon-color';
|
|
67
|
+
indicator: '--checkbox-size' | '--checkbox-radius' | '--checkbox-color' | '--checkbox-icon-color' | '--checkbox-bg';
|
|
68
68
|
};
|
|
69
69
|
export type CheckboxIndicatorFactory = Factory<{
|
|
70
70
|
props: Omit<CheckboxIndicatorProps, 'rootRef'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InputWrapperOrderPart } from '../Input/InputWrapper/get-input-offsets/get-input-offsets';
|
|
2
|
+
interface GetComboboxLabelIdInput {
|
|
3
|
+
id: string;
|
|
4
|
+
label: unknown;
|
|
5
|
+
labelProps?: Record<string, any>;
|
|
6
|
+
inputWrapperOrder?: InputWrapperOrderPart[];
|
|
7
|
+
}
|
|
8
|
+
export declare function getComboboxLabelId({ id, label, labelProps, inputWrapperOrder, }: GetComboboxLabelIdInput): any;
|
|
9
|
+
export {};
|
|
@@ -21,6 +21,8 @@ export interface DrawerStackContextValue {
|
|
|
21
21
|
currentId: string;
|
|
22
22
|
/** Highest `z-index` any drawer of the stack has asked for. */
|
|
23
23
|
maxZIndex: string | number;
|
|
24
|
+
/** Escape events already handled by the top drawer in this stack. */
|
|
25
|
+
handledEscapeEvents: WeakSet<KeyboardEvent>;
|
|
24
26
|
}
|
|
25
27
|
export declare const DrawerStackContextKey: InjectionKey<DrawerStackContextValue>;
|
|
26
28
|
/** Returns `null` outside a `Drawer.Stack`, which is the normal case for a lone drawer. */
|
|
@@ -2,5 +2,17 @@ export interface HoverCardContextValue {
|
|
|
2
2
|
openDropdown: () => void;
|
|
3
3
|
closeDropdown: () => void;
|
|
4
4
|
assignTarget: (node: HTMLElement | null) => void;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
events: {
|
|
7
|
+
hover: boolean;
|
|
8
|
+
focus: boolean;
|
|
9
|
+
touch: boolean;
|
|
10
|
+
};
|
|
11
|
+
interactive: boolean;
|
|
12
|
+
role: 'dialog' | 'tooltip';
|
|
13
|
+
withRoles: boolean;
|
|
14
|
+
dropdownId: string;
|
|
15
|
+
closeImmediately: () => void;
|
|
16
|
+
dismiss: () => void;
|
|
5
17
|
}
|
|
6
18
|
export declare const provideHoverCardContext: (value: HoverCardContextValue) => void, useHoverCardContext: () => HoverCardContextValue;
|
|
@@ -77,4 +77,4 @@ export declare const HoverCard: {
|
|
|
77
77
|
$slots: import("./index.js").HoverCardGroupSlots;
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
-
export type { HoverCardOwnProps, HoverCardProps, HoverCardSlots } from './HoverCard.types';
|
|
80
|
+
export type { HoverCardEvents, HoverCardOwnProps, HoverCardProps, HoverCardSlots, } from './HoverCard.types';
|