@mantine-vue/core 3.5.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 +4500 -1575
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +4480 -1577
- 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/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/MultiSelect/MultiSelect.d.ts +5 -5
- package/lib/components/MultiSelect/MultiSelect.vue.d.ts +2 -2
- 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 +682 -142
- package/styles.layer.css +682 -142
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
import type { VueRefTarget } from '@mantine-vue/hooks';
|
|
3
|
+
import type { BoxProps, Factory, MantineColor, MantineRadius, MantineSize, StylesApiProps } from '../../core';
|
|
4
|
+
import type { ToggleVariant } from '../Toggle';
|
|
5
|
+
import type ToolbarDivider from './ToolbarDivider.vue';
|
|
6
|
+
import type ToolbarGroup from './ToolbarGroup.vue';
|
|
7
|
+
import type ToolbarToggle from './ToolbarToggle.vue';
|
|
8
|
+
import type ToolbarToggleGroup from './ToolbarToggleGroup.vue';
|
|
9
|
+
import type ToolbarToggleItem from './ToolbarToggleItem.vue';
|
|
10
|
+
export type ToolbarStylesNames = 'root' | 'group' | 'toggle' | 'divider';
|
|
11
|
+
export type ToolbarCssVariables = {
|
|
12
|
+
root: '--toolbar-toggle-size' | '--toolbar-padding' | '--toolbar-gap' | '--toolbar-radius';
|
|
13
|
+
toggle: '--toolbar-toggle-active-bg' | '--toolbar-toggle-active-hover' | '--toolbar-toggle-active-color';
|
|
14
|
+
};
|
|
15
|
+
export interface ToolbarOwnProps extends StylesApiProps<ToolbarFactory> {
|
|
16
|
+
/** Receives the root DOM node. */
|
|
17
|
+
rootRef?: VueRefTarget<Element>;
|
|
18
|
+
/** Toolbar orientation, `'horizontal'` by default */
|
|
19
|
+
orientation?: 'horizontal' | 'vertical';
|
|
20
|
+
/** Whether arrow key navigation wraps from last to first item, `true` by default */
|
|
21
|
+
loop?: boolean;
|
|
22
|
+
/** Controls size of toggle components, padding, and gap, `'md'` by default */
|
|
23
|
+
size?: MantineSize | (string & {});
|
|
24
|
+
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, propagated to all children, `theme.defaultRadius` by default */
|
|
25
|
+
radius?: MantineRadius;
|
|
26
|
+
/** Determines whether the toolbar has a border, `true` by default */
|
|
27
|
+
withBorder?: boolean;
|
|
28
|
+
/** Key of `theme.colors` or any valid CSS color, controls color of child toggle components */
|
|
29
|
+
color?: MantineColor;
|
|
30
|
+
/** Determines whether icon color with filled variant should be changed based on the given `color` prop */
|
|
31
|
+
autoContrast?: boolean;
|
|
32
|
+
/** Controls visual representation of child toggle components. @default 'filled' */
|
|
33
|
+
variant?: ToggleVariant;
|
|
34
|
+
}
|
|
35
|
+
export interface ToolbarProps extends Omit<BoxProps, keyof ToolbarOwnProps>, ToolbarOwnProps {
|
|
36
|
+
}
|
|
37
|
+
export interface ToolbarSlots {
|
|
38
|
+
default?: () => VNodeChild;
|
|
39
|
+
}
|
|
40
|
+
export type ToolbarFactory = Factory<{
|
|
41
|
+
props: Omit<ToolbarProps, 'rootRef'>;
|
|
42
|
+
slots: ToolbarSlots;
|
|
43
|
+
ref: HTMLDivElement;
|
|
44
|
+
exposed: {
|
|
45
|
+
rootElement: Element | null;
|
|
46
|
+
};
|
|
47
|
+
element: 'div';
|
|
48
|
+
stylesNames: ToolbarStylesNames;
|
|
49
|
+
vars: ToolbarCssVariables;
|
|
50
|
+
variant: ToggleVariant;
|
|
51
|
+
staticComponents: {
|
|
52
|
+
Group: typeof ToolbarGroup;
|
|
53
|
+
Toggle: typeof ToolbarToggle;
|
|
54
|
+
ToggleGroup: typeof ToolbarToggleGroup;
|
|
55
|
+
ToggleItem: typeof ToolbarToggleItem;
|
|
56
|
+
Divider: typeof ToolbarDivider;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
export interface ToolbarCompoundProps extends BoxProps {
|
|
60
|
+
classNames?: any;
|
|
61
|
+
styles?: any;
|
|
62
|
+
}
|
|
63
|
+
export type ToolbarGroupProps = ToolbarCompoundProps;
|
|
64
|
+
export type ToolbarDividerProps = ToolbarCompoundProps;
|
|
65
|
+
export interface ToolbarToggleProps extends ToolbarCompoundProps {
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
active?: boolean;
|
|
68
|
+
autoWidth?: boolean;
|
|
69
|
+
component?: any;
|
|
70
|
+
}
|
|
71
|
+
interface ToolbarToggleGroupBaseProps extends ToolbarCompoundProps {
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface ToolbarToggleGroupSingleProps extends ToolbarToggleGroupBaseProps {
|
|
75
|
+
type: 'single';
|
|
76
|
+
modelValue?: string | null;
|
|
77
|
+
defaultValue?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export interface ToolbarToggleGroupMultipleProps extends ToolbarToggleGroupBaseProps {
|
|
80
|
+
type: 'multiple';
|
|
81
|
+
modelValue?: string[];
|
|
82
|
+
defaultValue?: string[];
|
|
83
|
+
}
|
|
84
|
+
export type ToolbarToggleGroupProps = ToolbarToggleGroupSingleProps | ToolbarToggleGroupMultipleProps;
|
|
85
|
+
export interface ToolbarToggleItemProps extends ToolbarCompoundProps {
|
|
86
|
+
value: string;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
autoWidth?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToolbarOwnProps, ToolbarSlots } from './Toolbar.types';
|
|
2
|
+
declare const varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
3
|
+
export { varsResolver };
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToolbarOwnProps, {
|
|
7
|
+
rootElement: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarOwnProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToolbarSlots>;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("./Toolbar.types").ToolbarCompoundProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./Toolbar.types").ToolbarCompoundProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("./Toolbar.types").ToolbarCompoundProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./Toolbar.types").ToolbarCompoundProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToolbarToggleProps } from './Toolbar.types';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ToolbarToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarToggleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("./Toolbar.types").ToolbarToggleGroupSingleProps | import("./Toolbar.types").ToolbarToggleGroupMultipleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
change: (value: string | string[] | null) => any;
|
|
7
|
+
"update:modelValue": (value: string | string[] | null) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("./Toolbar.types").ToolbarToggleGroupSingleProps | import("./Toolbar.types").ToolbarToggleGroupMultipleProps> & Readonly<{
|
|
9
|
+
onChange?: ((value: string | string[] | null) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToolbarToggleItemProps } from './Toolbar.types';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ToolbarToggleItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarToggleItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toolbar';
|
|
@@ -181,4 +181,6 @@ export interface TooltipProps extends TooltipBaseProps {
|
|
|
181
181
|
* default slot when the target is not a child of the tooltip.
|
|
182
182
|
*/
|
|
183
183
|
target?: any;
|
|
184
|
+
/** If set, the tooltip is hidden when its target is detached, hidden, or outside the visible area. @default true */
|
|
185
|
+
hideDetached?: boolean;
|
|
184
186
|
}
|
|
@@ -26,6 +26,7 @@ declare const defaults: {
|
|
|
26
26
|
readonly inline: false;
|
|
27
27
|
};
|
|
28
28
|
readonly floatingStrategy: "absolute";
|
|
29
|
+
readonly hideDetached: true;
|
|
29
30
|
};
|
|
30
31
|
/** Module scope: created once, not per component instance. */
|
|
31
32
|
declare const varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
@@ -15,6 +15,7 @@ export interface UseTooltipOptions {
|
|
|
15
15
|
};
|
|
16
16
|
strategy: () => FloatingStrategy;
|
|
17
17
|
middlewares: () => TooltipMiddlewares | undefined;
|
|
18
|
+
hideDetached?: () => boolean | undefined;
|
|
18
19
|
onPositionChange?: (position: FloatingPosition) => void;
|
|
19
20
|
}
|
|
20
21
|
export declare function useTooltip(options: UseTooltipOptions): {
|
|
@@ -27,6 +28,7 @@ export declare function useTooltip(options: UseTooltipOptions): {
|
|
|
27
28
|
placement: Readonly<import("vue").Ref<import("@floating-ui/utils").Placement, import("@floating-ui/utils").Placement>>;
|
|
28
29
|
arrowX: import("vue").ComputedRef<number | undefined>;
|
|
29
30
|
arrowY: import("vue").ComputedRef<number | undefined>;
|
|
31
|
+
referenceHidden: import("vue").ComputedRef<boolean | undefined>;
|
|
30
32
|
open: () => void;
|
|
31
33
|
close: () => void;
|
|
32
34
|
setOpened: (value: boolean, delay?: number) => void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { MantineColor } from '../../core';
|
|
2
|
+
import type { TourLabels } from './Tour.types';
|
|
3
|
+
export declare const defaultTourLabels: TourLabels;
|
|
4
|
+
export interface TourContextValue {
|
|
5
|
+
getStyles: (selector: string, options?: any) => any;
|
|
6
|
+
step: number;
|
|
7
|
+
setStep: (step: number) => void;
|
|
8
|
+
stepsCount: number;
|
|
9
|
+
close: () => void;
|
|
10
|
+
withOverlay: boolean;
|
|
11
|
+
withOverlayInteraction: boolean;
|
|
12
|
+
withCloseButton: boolean;
|
|
13
|
+
closeOnOverlayClick: boolean;
|
|
14
|
+
spotlightPadding: number;
|
|
15
|
+
spotlightRadius: number;
|
|
16
|
+
color?: MantineColor;
|
|
17
|
+
labels: TourLabels;
|
|
18
|
+
titleId: string;
|
|
19
|
+
bodyId: string;
|
|
20
|
+
titleMounted: boolean;
|
|
21
|
+
bodyMounted: boolean;
|
|
22
|
+
registerTitle: (id: string | null) => void;
|
|
23
|
+
registerBody: (id: string | null) => void;
|
|
24
|
+
targetElement: HTMLElement | null;
|
|
25
|
+
setTargetElement: (element: HTMLElement | null) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const provideTourContext: (value: TourContextValue) => void, useTourContext: () => TourContextValue;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import TourRoot from './TourRoot.vue';
|
|
2
|
+
import TourStep from './TourStep.vue';
|
|
3
|
+
import TourOverlay from './TourOverlay.vue';
|
|
4
|
+
import TourTooltip from './TourTooltip.vue';
|
|
5
|
+
import TourBeacon from './TourBeacon.vue';
|
|
6
|
+
import TourTitle from './TourTitle.vue';
|
|
7
|
+
import TourBody from './TourBody.vue';
|
|
8
|
+
import TourCloseButton from './TourCloseButton.vue';
|
|
9
|
+
import TourNavigation from './TourNavigation.vue';
|
|
10
|
+
export { TourRoot, TourStep, TourOverlay, TourTooltip, TourBeacon, TourTitle, TourBody, TourCloseButton, TourNavigation, };
|
|
11
|
+
export declare const Tour: {
|
|
12
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Tour.types").TourOwnProps> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
15
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
16
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
17
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
close: () => any;
|
|
20
|
+
"update:step": (step: number) => any;
|
|
21
|
+
stepChange: (step: number) => any;
|
|
22
|
+
stepOpen: (step: number) => any;
|
|
23
|
+
stepClose: (step: number) => any;
|
|
24
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
25
|
+
P: {};
|
|
26
|
+
B: {};
|
|
27
|
+
D: {};
|
|
28
|
+
C: {};
|
|
29
|
+
M: {};
|
|
30
|
+
Defaults: {};
|
|
31
|
+
}, Readonly<import("./Tour.types").TourOwnProps> & Readonly<{
|
|
32
|
+
onClose?: (() => any) | undefined;
|
|
33
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
34
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
35
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
36
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, {}>;
|
|
38
|
+
__isFragment?: never;
|
|
39
|
+
__isTeleport?: never;
|
|
40
|
+
__isSuspense?: never;
|
|
41
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./Tour.types").TourOwnProps> & Readonly<{
|
|
42
|
+
onClose?: (() => any) | undefined;
|
|
43
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
44
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
45
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
46
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
close: () => any;
|
|
49
|
+
"update:step": (step: number) => any;
|
|
50
|
+
stepChange: (step: number) => any;
|
|
51
|
+
stepOpen: (step: number) => any;
|
|
52
|
+
stepClose: (step: number) => any;
|
|
53
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: {
|
|
55
|
+
default?: () => any;
|
|
56
|
+
};
|
|
57
|
+
}) & {
|
|
58
|
+
classes: Record<string, string>;
|
|
59
|
+
varsResolver: (theme: import("../../index.js").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
60
|
+
Root: {
|
|
61
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Tour.types").TourRootProps> & Readonly<{
|
|
62
|
+
onClose?: (() => any) | undefined;
|
|
63
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
64
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
65
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
66
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
|
+
close: () => any;
|
|
69
|
+
"update:step": (step: number) => any;
|
|
70
|
+
stepChange: (step: number) => any;
|
|
71
|
+
stepOpen: (step: number) => any;
|
|
72
|
+
stepClose: (step: number) => any;
|
|
73
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
74
|
+
P: {};
|
|
75
|
+
B: {};
|
|
76
|
+
D: {};
|
|
77
|
+
C: {};
|
|
78
|
+
M: {};
|
|
79
|
+
Defaults: {};
|
|
80
|
+
}, Readonly<import("./Tour.types").TourRootProps> & Readonly<{
|
|
81
|
+
onClose?: (() => any) | undefined;
|
|
82
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
83
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
84
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
85
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
86
|
+
}>, {}, {}, {}, {}, {}>;
|
|
87
|
+
__isFragment?: never;
|
|
88
|
+
__isTeleport?: never;
|
|
89
|
+
__isSuspense?: never;
|
|
90
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./Tour.types").TourRootProps> & Readonly<{
|
|
91
|
+
onClose?: (() => any) | undefined;
|
|
92
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
93
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
94
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
95
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
96
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
|
+
close: () => any;
|
|
98
|
+
"update:step": (step: number) => any;
|
|
99
|
+
stepChange: (step: number) => any;
|
|
100
|
+
stepOpen: (step: number) => any;
|
|
101
|
+
stepClose: (step: number) => any;
|
|
102
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
103
|
+
$slots: {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
Step: {
|
|
108
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Tour.types").TourStepProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
109
|
+
P: {};
|
|
110
|
+
B: {};
|
|
111
|
+
D: {};
|
|
112
|
+
C: {};
|
|
113
|
+
M: {};
|
|
114
|
+
Defaults: {};
|
|
115
|
+
}, Readonly<import("./Tour.types").TourStepProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
116
|
+
__isFragment?: never;
|
|
117
|
+
__isTeleport?: never;
|
|
118
|
+
__isSuspense?: never;
|
|
119
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./Tour.types").TourStepProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
120
|
+
$slots: {
|
|
121
|
+
default?: () => any;
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
Overlay: import("vue").DefineComponent<import("./Tour.types").TourOverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
125
|
+
click: (event: MouseEvent) => any;
|
|
126
|
+
}, string, import("vue").PublicProps, Readonly<import("./Tour.types").TourOverlayProps> & Readonly<{
|
|
127
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
128
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
129
|
+
Tooltip: {
|
|
130
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./Tour.types").TourTooltipProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
131
|
+
P: {};
|
|
132
|
+
B: {};
|
|
133
|
+
D: {};
|
|
134
|
+
C: {};
|
|
135
|
+
M: {};
|
|
136
|
+
Defaults: {};
|
|
137
|
+
}, Readonly<import("./Tour.types").TourTooltipProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
138
|
+
__isFragment?: never;
|
|
139
|
+
__isTeleport?: never;
|
|
140
|
+
__isSuspense?: never;
|
|
141
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./Tour.types").TourTooltipProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
142
|
+
$slots: {
|
|
143
|
+
default?: (props: {}) => any;
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
Beacon: import("vue").DefineComponent<import("./Tour.types").TourBeaconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./Tour.types").TourBeaconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
147
|
+
Title: {
|
|
148
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
149
|
+
P: {};
|
|
150
|
+
B: {};
|
|
151
|
+
D: {};
|
|
152
|
+
C: {};
|
|
153
|
+
M: {};
|
|
154
|
+
Defaults: {};
|
|
155
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
156
|
+
__isFragment?: never;
|
|
157
|
+
__isTeleport?: never;
|
|
158
|
+
__isSuspense?: never;
|
|
159
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
160
|
+
$slots: {
|
|
161
|
+
default?: (props: {}) => any;
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
Body: {
|
|
165
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
166
|
+
P: {};
|
|
167
|
+
B: {};
|
|
168
|
+
D: {};
|
|
169
|
+
C: {};
|
|
170
|
+
M: {};
|
|
171
|
+
Defaults: {};
|
|
172
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
173
|
+
__isFragment?: never;
|
|
174
|
+
__isTeleport?: never;
|
|
175
|
+
__isSuspense?: never;
|
|
176
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
177
|
+
$slots: {
|
|
178
|
+
default?: (props: {}) => any;
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
CloseButton: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
182
|
+
Navigation: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
183
|
+
};
|
|
184
|
+
export type * from './Tour.types';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { Ref, VNodeChild } from 'vue';
|
|
2
|
+
import type { VueRefTarget } from '@mantine-vue/hooks';
|
|
3
|
+
import type { BoxProps, Factory, MantineColor, StylesApiProps } from '../../core';
|
|
4
|
+
import type { FloatingPosition } from '../../utils/Floating';
|
|
5
|
+
import type { TransitionProps } from '../Transition';
|
|
6
|
+
export type TourTarget = string | Ref<HTMLElement | null>;
|
|
7
|
+
export interface TourLabels {
|
|
8
|
+
skip: string;
|
|
9
|
+
back: string;
|
|
10
|
+
next: string;
|
|
11
|
+
close: string;
|
|
12
|
+
stepCounter: (current: number, total: number) => string;
|
|
13
|
+
beacon: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TourStepProps {
|
|
16
|
+
target?: TourTarget;
|
|
17
|
+
title?: VNodeChild;
|
|
18
|
+
position?: FloatingPosition;
|
|
19
|
+
withOverlay?: boolean;
|
|
20
|
+
spotlightPadding?: number;
|
|
21
|
+
spotlightRadius?: number;
|
|
22
|
+
withBeacon?: boolean;
|
|
23
|
+
onStepOpen?: () => void;
|
|
24
|
+
onStepClose?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface TourStepData extends TourStepProps {
|
|
27
|
+
content?: () => VNodeChild;
|
|
28
|
+
}
|
|
29
|
+
export interface TourRootProps extends TourOwnProps {
|
|
30
|
+
stepsCount: number;
|
|
31
|
+
}
|
|
32
|
+
export interface TourOverlayProps {
|
|
33
|
+
targetRect?: {
|
|
34
|
+
top: number;
|
|
35
|
+
left: number;
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
} | null;
|
|
39
|
+
color?: string;
|
|
40
|
+
withInteraction?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface TourTooltipProps extends BoxProps {
|
|
43
|
+
targetElement?: HTMLElement | null;
|
|
44
|
+
position?: FloatingPosition;
|
|
45
|
+
mounted?: boolean;
|
|
46
|
+
transitionProps?: Partial<TransitionProps>;
|
|
47
|
+
}
|
|
48
|
+
export interface TourBeaconProps extends BoxProps {
|
|
49
|
+
target?: TourTarget;
|
|
50
|
+
}
|
|
51
|
+
export type TourNavigationProps = BoxProps;
|
|
52
|
+
export type TourTitleProps = BoxProps;
|
|
53
|
+
export type TourBodyProps = BoxProps;
|
|
54
|
+
export type TourCloseButtonProps = BoxProps;
|
|
55
|
+
export type TourStylesNames = 'root' | 'overlay' | 'spotlight' | 'tooltip' | 'title' | 'body' | 'navigation' | 'closeButton' | 'stepCounter' | 'beacon' | 'beaconPulse' | 'navigationButton';
|
|
56
|
+
export type TourCssVariables = {
|
|
57
|
+
root: '--tour-z-index' | '--tour-overlay-color' | '--tour-tooltip-radius' | '--tour-tooltip-shadow' | '--tour-beacon-size' | '--tour-beacon-color' | '--tour-color';
|
|
58
|
+
};
|
|
59
|
+
export interface TourOwnProps extends StylesApiProps<TourFactory> {
|
|
60
|
+
/** Receives the root DOM node. */
|
|
61
|
+
rootRef?: VueRefTarget<Element>;
|
|
62
|
+
/** Whether the tour is active @default false */
|
|
63
|
+
active?: boolean;
|
|
64
|
+
/** Controlled current step index */
|
|
65
|
+
step?: number;
|
|
66
|
+
/** Uncontrolled default step index @default 0 */
|
|
67
|
+
defaultStep?: number;
|
|
68
|
+
/** Tour mode @default "guided" */
|
|
69
|
+
mode?: 'guided' | 'beacon';
|
|
70
|
+
/** Whether to display the overlay @default true */
|
|
71
|
+
withOverlay?: boolean;
|
|
72
|
+
/** Whether pointer events pass through the spotlight cutout to the target element, the rest of the overlay keeps blocking clicks @default false */
|
|
73
|
+
withOverlayInteraction?: boolean;
|
|
74
|
+
/** Whether to display the close button @default true */
|
|
75
|
+
withCloseButton?: boolean;
|
|
76
|
+
/** Whether keyboard navigation is enabled in guided mode @default true */
|
|
77
|
+
withKeyboardNavigation?: boolean;
|
|
78
|
+
/** Whether to scroll target elements into view @default true */
|
|
79
|
+
withScrollIntoView?: boolean;
|
|
80
|
+
/** Custom scroll handler */
|
|
81
|
+
scrollToHandler?: (element: HTMLElement) => void;
|
|
82
|
+
/** Padding around the spotlight cutout in px @default 8 */
|
|
83
|
+
spotlightPadding?: number;
|
|
84
|
+
/** Border radius of the spotlight cutout in px @default 4 */
|
|
85
|
+
spotlightRadius?: number;
|
|
86
|
+
/** Whether pressing Escape closes the tour @default true */
|
|
87
|
+
closeOnEscape?: boolean;
|
|
88
|
+
/** Whether clicking the overlay closes the tour, with `withOverlayInteraction` only clicks outside the spotlight cutout close it @default false */
|
|
89
|
+
closeOnOverlayClick?: boolean;
|
|
90
|
+
/** Labels for tour UI elements */
|
|
91
|
+
labels?: Partial<TourLabels>;
|
|
92
|
+
/** Whether to render inside a portal @default true */
|
|
93
|
+
withinPortal?: boolean;
|
|
94
|
+
/** Props passed to the Portal component */
|
|
95
|
+
portalProps?: Record<string, any>;
|
|
96
|
+
/** z-index of the tour @default 10000 */
|
|
97
|
+
zIndex?: string | number;
|
|
98
|
+
/** Transition props for the tooltip @default { duration: 200, transition: 'pop' } */
|
|
99
|
+
transitionProps?: Partial<TransitionProps>;
|
|
100
|
+
/** Duration of the tooltip position transition between steps in ms @default 300 */
|
|
101
|
+
stepTransitionDuration?: number;
|
|
102
|
+
/** Max width of the tooltip, tooltip always takes this width if viewport allows @default 360 */
|
|
103
|
+
maxWidth?: number;
|
|
104
|
+
/** Tour step overlay color @default "rgba(0, 0, 0, 0.5)" */
|
|
105
|
+
overlayColor?: string;
|
|
106
|
+
/** Key of `theme.colors` or any valid CSS color, controls beacon color and `Tour.Navigation` next button color @default theme.primaryColor */
|
|
107
|
+
color?: MantineColor;
|
|
108
|
+
/** Key of `theme.shadows` or any valid CSS box-shadow value, controls the tooltip shadow @default 'md' */
|
|
109
|
+
tooltipShadow?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface TourProps extends Omit<BoxProps, keyof TourOwnProps>, TourOwnProps {
|
|
112
|
+
}
|
|
113
|
+
export interface TourSlots {
|
|
114
|
+
default?: () => VNodeChild;
|
|
115
|
+
}
|
|
116
|
+
export interface TourEmits {
|
|
117
|
+
close: [];
|
|
118
|
+
'update:step': [step: number];
|
|
119
|
+
stepChange: [step: number];
|
|
120
|
+
stepOpen: [step: number];
|
|
121
|
+
stepClose: [step: number];
|
|
122
|
+
}
|
|
123
|
+
export type TourFactory = Factory<{
|
|
124
|
+
props: Omit<TourProps, 'rootRef'>;
|
|
125
|
+
slots: TourSlots;
|
|
126
|
+
emits: TourEmits;
|
|
127
|
+
ref: HTMLDivElement;
|
|
128
|
+
element: 'div';
|
|
129
|
+
stylesNames: TourStylesNames;
|
|
130
|
+
vars: TourCssVariables;
|
|
131
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TourOwnProps } from './Tour.types';
|
|
2
|
+
declare const varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
3
|
+
export { varsResolver };
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TourOwnProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
"update:step": (step: number) => any;
|
|
9
|
+
stepChange: (step: number) => any;
|
|
10
|
+
stepOpen: (step: number) => any;
|
|
11
|
+
stepClose: (step: number) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<TourOwnProps> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
15
|
+
onStepChange?: ((step: number) => any) | undefined;
|
|
16
|
+
onStepOpen?: ((step: number) => any) | undefined;
|
|
17
|
+
onStepClose?: ((step: number) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
19
|
+
default?: () => any;
|
|
20
|
+
}>;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TourBeaconProps } from './Tour.types';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<TourBeaconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TourBeaconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TourTarget } from './Tour.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
target?: TourTarget;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
click: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClick?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TourOverlayProps } from './Tour.types';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<TourOverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
click: (event: MouseEvent) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<TourOverlayProps> & Readonly<{
|
|
5
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|