@vuecs/overlays 1.0.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/LICENSE +201 -0
- package/README.md +37 -0
- package/dist/components/context-menu/ContextMenu.vue.d.ts +63 -0
- package/dist/components/context-menu/ContextMenu.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem.vue.d.ts +98 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuContent.vue.d.ts +111 -0
- package/dist/components/context-menu/ContextMenuContent.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuGroup.vue.d.ts +47 -0
- package/dist/components/context-menu/ContextMenuGroup.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuItem.vue.d.ts +113 -0
- package/dist/components/context-menu/ContextMenuItem.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuItemIndicator.vue.d.ts +63 -0
- package/dist/components/context-menu/ContextMenuItemIndicator.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuLabel.vue.d.ts +79 -0
- package/dist/components/context-menu/ContextMenuLabel.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuRadioGroup.vue.d.ts +65 -0
- package/dist/components/context-menu/ContextMenuRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuRadioItem.vue.d.ts +96 -0
- package/dist/components/context-menu/ContextMenuRadioItem.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuSeparator.vue.d.ts +47 -0
- package/dist/components/context-menu/ContextMenuSeparator.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuSub.vue.d.ts +47 -0
- package/dist/components/context-menu/ContextMenuSub.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuSubContent.vue.d.ts +127 -0
- package/dist/components/context-menu/ContextMenuSubContent.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuSubTrigger.vue.d.ts +111 -0
- package/dist/components/context-menu/ContextMenuSubTrigger.vue.d.ts.map +1 -0
- package/dist/components/context-menu/ContextMenuTrigger.vue.d.ts +95 -0
- package/dist/components/context-menu/ContextMenuTrigger.vue.d.ts.map +1 -0
- package/dist/components/context-menu/index.d.ts +31 -0
- package/dist/components/context-menu/index.d.ts.map +1 -0
- package/dist/components/context-menu/theme.d.ts +4 -0
- package/dist/components/context-menu/theme.d.ts.map +1 -0
- package/dist/components/context-menu/types.d.ts +33 -0
- package/dist/components/context-menu/types.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +79 -0
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuArrow.vue.d.ts +79 -0
- package/dist/components/dropdown-menu/DropdownMenuArrow.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +98 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +159 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +47 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +113 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuItemIndicator.vue.d.ts +63 -0
- package/dist/components/dropdown-menu/DropdownMenuItemIndicator.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +79 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +65 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +96 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +47 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSub.vue.d.ts +47 -0
- package/dist/components/dropdown-menu/DropdownMenuSub.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +127 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +111 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +79 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +33 -0
- package/dist/components/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/dropdown-menu/theme.d.ts +4 -0
- package/dist/components/dropdown-menu/theme.d.ts.map +1 -0
- package/dist/components/dropdown-menu/types.d.ts +35 -0
- package/dist/components/dropdown-menu/types.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCard.vue.d.ts +79 -0
- package/dist/components/hover-card/HoverCard.vue.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCardArrow.vue.d.ts +79 -0
- package/dist/components/hover-card/HoverCardArrow.vue.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCardContent.vue.d.ts +143 -0
- package/dist/components/hover-card/HoverCardContent.vue.d.ts.map +1 -0
- package/dist/components/hover-card/HoverCardTrigger.vue.d.ts +79 -0
- package/dist/components/hover-card/HoverCardTrigger.vue.d.ts.map +1 -0
- package/dist/components/hover-card/index.d.ts +11 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/theme.d.ts +4 -0
- package/dist/components/hover-card/theme.d.ts.map +1 -0
- package/dist/components/hover-card/types.d.ts +15 -0
- package/dist/components/hover-card/types.d.ts.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/modal/Modal.vue.d.ts +63 -0
- package/dist/components/modal/Modal.vue.d.ts.map +1 -0
- package/dist/components/modal/ModalClose.vue.d.ts +116 -0
- package/dist/components/modal/ModalClose.vue.d.ts.map +1 -0
- package/dist/components/modal/ModalContent.vue.d.ts +81 -0
- package/dist/components/modal/ModalContent.vue.d.ts.map +1 -0
- package/dist/components/modal/ModalDescription.vue.d.ts +47 -0
- package/dist/components/modal/ModalDescription.vue.d.ts.map +1 -0
- package/dist/components/modal/ModalTitle.vue.d.ts +47 -0
- package/dist/components/modal/ModalTitle.vue.d.ts.map +1 -0
- package/dist/components/modal/ModalTrigger.vue.d.ts +79 -0
- package/dist/components/modal/ModalTrigger.vue.d.ts.map +1 -0
- package/dist/components/modal/index.d.ts +16 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/theme.d.ts +13 -0
- package/dist/components/modal/theme.d.ts.map +1 -0
- package/dist/components/modal/types.d.ts +38 -0
- package/dist/components/modal/types.d.ts.map +1 -0
- package/dist/components/modal/use-modal.d.ts +54 -0
- package/dist/components/modal/use-modal.d.ts.map +1 -0
- package/dist/components/popover/Popover.vue.d.ts +63 -0
- package/dist/components/popover/Popover.vue.d.ts.map +1 -0
- package/dist/components/popover/PopoverArrow.vue.d.ts +79 -0
- package/dist/components/popover/PopoverArrow.vue.d.ts.map +1 -0
- package/dist/components/popover/PopoverClose.vue.d.ts +116 -0
- package/dist/components/popover/PopoverClose.vue.d.ts.map +1 -0
- package/dist/components/popover/PopoverContent.vue.d.ts +143 -0
- package/dist/components/popover/PopoverContent.vue.d.ts.map +1 -0
- package/dist/components/popover/PopoverTrigger.vue.d.ts +79 -0
- package/dist/components/popover/PopoverTrigger.vue.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +13 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/theme.d.ts +4 -0
- package/dist/components/popover/theme.d.ts.map +1 -0
- package/dist/components/popover/types.d.ts +25 -0
- package/dist/components/popover/types.d.ts.map +1 -0
- package/dist/components/presence/Presence.vue.d.ts +39 -0
- package/dist/components/presence/Presence.vue.d.ts.map +1 -0
- package/dist/components/presence/index.d.ts +3 -0
- package/dist/components/presence/index.d.ts.map +1 -0
- package/dist/components/presence/types.d.ts +20 -0
- package/dist/components/presence/types.d.ts.map +1 -0
- package/dist/components/toast/Toast.vue.d.ts +225 -0
- package/dist/components/toast/Toast.vue.d.ts.map +1 -0
- package/dist/components/toast/ToastAction.vue.d.ts +99 -0
- package/dist/components/toast/ToastAction.vue.d.ts.map +1 -0
- package/dist/components/toast/ToastClose.vue.d.ts +116 -0
- package/dist/components/toast/ToastClose.vue.d.ts.map +1 -0
- package/dist/components/toast/ToastDescription.vue.d.ts +90 -0
- package/dist/components/toast/ToastDescription.vue.d.ts.map +1 -0
- package/dist/components/toast/ToastProvider.vue.d.ts +85 -0
- package/dist/components/toast/ToastProvider.vue.d.ts.map +1 -0
- package/dist/components/toast/ToastTitle.vue.d.ts +90 -0
- package/dist/components/toast/ToastTitle.vue.d.ts.map +1 -0
- package/dist/components/toast/Toaster.vue.d.ts +135 -0
- package/dist/components/toast/Toaster.vue.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +18 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/theme.d.ts +8 -0
- package/dist/components/toast/theme.d.ts.map +1 -0
- package/dist/components/toast/types.d.ts +148 -0
- package/dist/components/toast/types.d.ts.map +1 -0
- package/dist/components/toast/use-toast.d.ts +41 -0
- package/dist/components/toast/use-toast.d.ts.map +1 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +95 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts.map +1 -0
- package/dist/components/tooltip/TooltipArrow.vue.d.ts +79 -0
- package/dist/components/tooltip/TooltipArrow.vue.d.ts.map +1 -0
- package/dist/components/tooltip/TooltipContent.vue.d.ts +143 -0
- package/dist/components/tooltip/TooltipContent.vue.d.ts.map +1 -0
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +99 -0
- package/dist/components/tooltip/TooltipProvider.vue.d.ts.map +1 -0
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +79 -0
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +13 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/theme.d.ts +4 -0
- package/dist/components/tooltip/theme.d.ts.map +1 -0
- package/dist/components/tooltip/types.d.ts +15 -0
- package/dist/components/tooltip/types.d.ts.map +1 -0
- package/dist/config.d.ts +25 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +2620 -0
- package/dist/index.mjs.map +1 -0
- package/dist/vue.d.ts +119 -0
- package/dist/vue.d.ts.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { ToastActionThemeClasses } from './types';
|
|
3
|
+
declare const toastActionProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastActionThemeClasses>>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
themeVariant: {
|
|
9
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Short text describing the action. Required by Reka for AT — when the
|
|
14
|
+
* toast auto-dismisses, screen readers announce this label so the user
|
|
15
|
+
* knows what was missed. Mirror your action button's visible label.
|
|
16
|
+
*/
|
|
17
|
+
altText: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** HTML tag to render. */
|
|
22
|
+
as: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
27
|
+
asChild: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type ToastActionProps = ExtractPublicPropTypes<typeof toastActionProps>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
36
|
+
themeClass: {
|
|
37
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastActionThemeClasses>>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
themeVariant: {
|
|
41
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Short text describing the action. Required by Reka for AT — when the
|
|
46
|
+
* toast auto-dismisses, screen readers announce this label so the user
|
|
47
|
+
* knows what was missed. Mirror your action button's visible label.
|
|
48
|
+
*/
|
|
49
|
+
altText: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
};
|
|
53
|
+
/** HTML tag to render. */
|
|
54
|
+
as: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
59
|
+
asChild: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
themeClass: {
|
|
67
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastActionThemeClasses>>;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
themeVariant: {
|
|
71
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Short text describing the action. Required by Reka for AT — when the
|
|
76
|
+
* toast auto-dismisses, screen readers announce this label so the user
|
|
77
|
+
* knows what was missed. Mirror your action button's visible label.
|
|
78
|
+
*/
|
|
79
|
+
altText: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
/** HTML tag to render. */
|
|
84
|
+
as: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
89
|
+
asChild: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{}>, {
|
|
94
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<ToastActionThemeClasses>;
|
|
95
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
96
|
+
asChild: boolean;
|
|
97
|
+
as: string;
|
|
98
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
|
+
//# sourceMappingURL=ToastAction.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastAction.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAIlD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,gBAAgB;;;;;;;;;IAClB;;;;OAIG;;;;;IAEH,0BAA0B;;;;;IAE1B,6EAA6E;;;;;CAGhF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,OAAO,gBAAgB,CAAC,CAAC;wBAE1D,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAvBd;;;;OAIG;;;;;IAEH,0BAA0B;;;;;IAE1B,6EAA6E;;;;;;;;;;;;;;;;IAR7E;;;;OAIG;;;;;IAEH,0BAA0B;;;;;IAE1B,6EAA6E;;;;;;;;;;4EAoC/E,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { ThemeClassesOverride, VariantValues } from '@vuecs/core';
|
|
3
|
+
import type { ToastThemeClasses } from './types';
|
|
4
|
+
declare const toastCloseProps: {
|
|
5
|
+
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
6
|
+
as: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
/** Render the slot content as the rendered element instead of wrapping it. */
|
|
11
|
+
asChild: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Force the corner-X presentation (reads the theme's `closeIcon` slot).
|
|
17
|
+
* When false (default), the slot-presence heuristic decides:
|
|
18
|
+
* - slotless renders the corner-X (`closeIcon`)
|
|
19
|
+
* - slotted renders the neutral `close` styling
|
|
20
|
+
*
|
|
21
|
+
* Same convention as `<VCModalClose>` / `<VCPopoverClose>`.
|
|
22
|
+
*/
|
|
23
|
+
icon: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
/** Per-instance theme override — flat slot key map. */
|
|
28
|
+
themeClass: {
|
|
29
|
+
type: PropType<ThemeClassesOverride<ToastThemeClasses>>;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
/** Per-instance variant values. */
|
|
33
|
+
themeVariant: {
|
|
34
|
+
type: PropType<VariantValues>;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export type ToastCloseProps = ExtractPublicPropTypes<typeof toastCloseProps>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
42
|
+
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
43
|
+
as: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
/** Render the slot content as the rendered element instead of wrapping it. */
|
|
48
|
+
asChild: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Force the corner-X presentation (reads the theme's `closeIcon` slot).
|
|
54
|
+
* When false (default), the slot-presence heuristic decides:
|
|
55
|
+
* - slotless renders the corner-X (`closeIcon`)
|
|
56
|
+
* - slotted renders the neutral `close` styling
|
|
57
|
+
*
|
|
58
|
+
* Same convention as `<VCModalClose>` / `<VCPopoverClose>`.
|
|
59
|
+
*/
|
|
60
|
+
icon: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** Per-instance theme override — flat slot key map. */
|
|
65
|
+
themeClass: {
|
|
66
|
+
type: PropType<ThemeClassesOverride<ToastThemeClasses>>;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
/** Per-instance variant values. */
|
|
70
|
+
themeVariant: {
|
|
71
|
+
type: PropType<VariantValues>;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
74
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
+
/** HTML tag (or component) to render as. Reka default: `'button'`. */
|
|
78
|
+
as: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
/** Render the slot content as the rendered element instead of wrapping it. */
|
|
83
|
+
asChild: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Force the corner-X presentation (reads the theme's `closeIcon` slot).
|
|
89
|
+
* When false (default), the slot-presence heuristic decides:
|
|
90
|
+
* - slotless renders the corner-X (`closeIcon`)
|
|
91
|
+
* - slotted renders the neutral `close` styling
|
|
92
|
+
*
|
|
93
|
+
* Same convention as `<VCModalClose>` / `<VCPopoverClose>`.
|
|
94
|
+
*/
|
|
95
|
+
icon: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
/** Per-instance theme override — flat slot key map. */
|
|
100
|
+
themeClass: {
|
|
101
|
+
type: PropType<ThemeClassesOverride<ToastThemeClasses>>;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
/** Per-instance variant values. */
|
|
105
|
+
themeVariant: {
|
|
106
|
+
type: PropType<VariantValues>;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{}>, {
|
|
110
|
+
themeClass: ThemeClassesOverride<ToastThemeClasses>;
|
|
111
|
+
themeVariant: VariantValues;
|
|
112
|
+
asChild: boolean;
|
|
113
|
+
as: string;
|
|
114
|
+
icon: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
|
+
//# sourceMappingURL=ToastClose.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastClose.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastClose.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,QAAA,MAAM,eAAe;IACjB,sEAAsE;;;;;IAEtE,8EAA8E;;;;;IAE9E;;;;;;;OAOG;;;;;IAEH,uDAAuD;;cACzB,QAAQ,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;;IAC/E,mCAAmC;;cACH,QAAQ,CAAC,aAAa,CAAC;;;CAC1D,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,eAAe,CAAC,CAAC;wBAExD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;IA7Bd,sEAAsE;;;;;IAEtE,8EAA8E;;;;;IAE9E;;;;;;;OAOG;;;;;IAEH,uDAAuD;;cACzB,QAAQ,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;;IAC/E,mCAAmC;;cACH,QAAQ,CAAC,aAAa,CAAC;;;;;;IAhBvD,sEAAsE;;;;;IAEtE,8EAA8E;;;;;IAE9E;;;;;;;OAOG;;;;;IAEH,uDAAuD;;cACzB,QAAQ,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;;;IAC/E,mCAAmC;;cACH,QAAQ,CAAC,aAAa,CAAC;;;;;;;;;4EAoCzD,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { ToastDescriptionThemeClasses } from './types';
|
|
3
|
+
declare const toastDescriptionProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastDescriptionThemeClasses>>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
themeVariant: {
|
|
9
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* HTML tag to render.
|
|
14
|
+
*
|
|
15
|
+
* Vuecs convention: defaults to `'p'` (Reka's `Primitive` default is
|
|
16
|
+
* `'div'`). `p` is the semantically-correct host for the toast body
|
|
17
|
+
* text — overridable via `:as`.
|
|
18
|
+
*/
|
|
19
|
+
as: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
24
|
+
asChild: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ToastDescriptionProps = ExtractPublicPropTypes<typeof toastDescriptionProps>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
+
themeClass: {
|
|
34
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastDescriptionThemeClasses>>;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
themeVariant: {
|
|
38
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
39
|
+
default: any;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* HTML tag to render.
|
|
43
|
+
*
|
|
44
|
+
* Vuecs convention: defaults to `'p'` (Reka's `Primitive` default is
|
|
45
|
+
* `'div'`). `p` is the semantically-correct host for the toast body
|
|
46
|
+
* text — overridable via `:as`.
|
|
47
|
+
*/
|
|
48
|
+
as: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
53
|
+
asChild: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
themeClass: {
|
|
61
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastDescriptionThemeClasses>>;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
themeVariant: {
|
|
65
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* HTML tag to render.
|
|
70
|
+
*
|
|
71
|
+
* Vuecs convention: defaults to `'p'` (Reka's `Primitive` default is
|
|
72
|
+
* `'div'`). `p` is the semantically-correct host for the toast body
|
|
73
|
+
* text — overridable via `:as`.
|
|
74
|
+
*/
|
|
75
|
+
as: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
80
|
+
asChild: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>> & Readonly<{}>, {
|
|
85
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<ToastDescriptionThemeClasses>;
|
|
86
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
87
|
+
asChild: boolean;
|
|
88
|
+
as: string;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
//# sourceMappingURL=ToastDescription.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastDescription.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastDescription.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAIlD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,QAAA,MAAM,qBAAqB;;;;;;;;;IACvB;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;CAGhF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,OAAO,qBAAqB,CAAC,CAAC;wBAEpE,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAvBd;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;;;;;;;;;;;;IAR7E;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;;;;;;4EAmC/E,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const toastProviderProps: {
|
|
3
|
+
/** Default auto-dismiss timeout (ms). Reka default: `5000`. Per-toast `duration` overrides. */
|
|
4
|
+
duration: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
/** Label announced by screen readers when a toast renders. */
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
/** Swipe direction that dismisses a toast via touch. Reka default: `'right'`. */
|
|
14
|
+
swipeDirection: {
|
|
15
|
+
type: PropType<"up" | "down" | "left" | "right">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** Pixels swiped before a dismissal is registered. Reka default: `50`. */
|
|
19
|
+
swipeThreshold: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type ToastProviderProps = ExtractPublicPropTypes<typeof toastProviderProps>;
|
|
25
|
+
/**
|
|
26
|
+
* App-level Toast configuration. Wrap your app (or specific subtrees) once
|
|
27
|
+
* to control duration + swipe behaviour for every nested `<VCToast>`.
|
|
28
|
+
*
|
|
29
|
+
* Maps to Reka's `ToastProvider`. The `<VCToaster>` viewport — typically
|
|
30
|
+
* rendered as a child of this provider — reads its queue from the shared
|
|
31
|
+
* `useToast()` singleton.
|
|
32
|
+
*/
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
36
|
+
/** Default auto-dismiss timeout (ms). Reka default: `5000`. Per-toast `duration` overrides. */
|
|
37
|
+
duration: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
/** Label announced by screen readers when a toast renders. */
|
|
42
|
+
label: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
/** Swipe direction that dismisses a toast via touch. Reka default: `'right'`. */
|
|
47
|
+
swipeDirection: {
|
|
48
|
+
type: PropType<"up" | "down" | "left" | "right">;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
/** Pixels swiped before a dismissal is registered. Reka default: `50`. */
|
|
52
|
+
swipeThreshold: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
/** Default auto-dismiss timeout (ms). Reka default: `5000`. Per-toast `duration` overrides. */
|
|
60
|
+
duration: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
/** Label announced by screen readers when a toast renders. */
|
|
65
|
+
label: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/** Swipe direction that dismisses a toast via touch. Reka default: `'right'`. */
|
|
70
|
+
swipeDirection: {
|
|
71
|
+
type: PropType<"up" | "down" | "left" | "right">;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
/** Pixels swiped before a dismissal is registered. Reka default: `50`. */
|
|
75
|
+
swipeThreshold: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{}>, {
|
|
80
|
+
label: string;
|
|
81
|
+
duration: number;
|
|
82
|
+
swipeDirection: "right" | "left" | "up" | "down";
|
|
83
|
+
swipeThreshold: number;
|
|
84
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
//# sourceMappingURL=ToastProvider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastProvider.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAI5D,QAAA,MAAM,kBAAkB;IACpB,+FAA+F;;;;;IAE/F,8DAA8D;;;;;IAE9D,iFAAiF;;cAC/C,QAAQ,CAAC,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;;;IAC5E,0EAA0E;;;;;CAE7E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnF;;;;;;;GAOG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;IA5Bd,+FAA+F;;;;;IAE/F,8DAA8D;;;;;IAE9D,iFAAiF;;cAC/C,QAAQ,CAAC,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;;;IAC5E,0EAA0E;;;;;;;;IAN1E,+FAA+F;;;;;IAE/F,8DAA8D;;;;;IAE9D,iFAAiF;;cAC/C,QAAQ,CAAC,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;;;IAC5E,0EAA0E;;;;;;;;;;4EAoC5E,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { ToastTitleThemeClasses } from './types';
|
|
3
|
+
declare const toastTitleProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastTitleThemeClasses>>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
themeVariant: {
|
|
9
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* HTML tag to render.
|
|
14
|
+
*
|
|
15
|
+
* Vuecs convention: defaults to `'h3'` (Reka's `Primitive` default is
|
|
16
|
+
* `'div'`). `h3` is the semantically-correct host for an in-context
|
|
17
|
+
* heading within a toast — overridable via `:as`.
|
|
18
|
+
*/
|
|
19
|
+
as: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
24
|
+
asChild: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ToastTitleProps = ExtractPublicPropTypes<typeof toastTitleProps>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
+
themeClass: {
|
|
34
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastTitleThemeClasses>>;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
themeVariant: {
|
|
38
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
39
|
+
default: any;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* HTML tag to render.
|
|
43
|
+
*
|
|
44
|
+
* Vuecs convention: defaults to `'h3'` (Reka's `Primitive` default is
|
|
45
|
+
* `'div'`). `h3` is the semantically-correct host for an in-context
|
|
46
|
+
* heading within a toast — overridable via `:as`.
|
|
47
|
+
*/
|
|
48
|
+
as: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
53
|
+
asChild: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
themeClass: {
|
|
61
|
+
type: import("vue").PropType<import("@vuecs/core").ThemeClassesOverride<ToastTitleThemeClasses>>;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
themeVariant: {
|
|
65
|
+
type: import("vue").PropType<import("@vuecs/core").VariantValues>;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* HTML tag to render.
|
|
70
|
+
*
|
|
71
|
+
* Vuecs convention: defaults to `'h3'` (Reka's `Primitive` default is
|
|
72
|
+
* `'div'`). `h3` is the semantically-correct host for an in-context
|
|
73
|
+
* heading within a toast — overridable via `:as`.
|
|
74
|
+
*/
|
|
75
|
+
as: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
/** Render the consumer's slot child as the root (Reka `asChild` pattern). */
|
|
80
|
+
asChild: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>> & Readonly<{}>, {
|
|
85
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<ToastTitleThemeClasses>;
|
|
86
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
87
|
+
asChild: boolean;
|
|
88
|
+
as: string;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
//# sourceMappingURL=ToastTitle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToastTitle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastTitle.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAIlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,QAAA,MAAM,eAAe;;;;;;;;;IACjB;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;CAGhF,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,eAAe,CAAC,CAAC;wBAExD,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IAvBd;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;;;;;;;;;;;;IAR7E;;;;;;OAMG;;;;;IAEH,6EAA6E;;;;;;;;;;4EAmC/E,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType, SlotsType, VNode } from 'vue';
|
|
2
|
+
import type { ToastEntry, ToastThemeClasses, ToastViewportPosition, ToastViewportThemeClasses } from './types';
|
|
3
|
+
declare const toasterProps: {
|
|
4
|
+
themeClass: {
|
|
5
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<ToastViewportThemeClasses>>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
themeVariant: {
|
|
9
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Viewport position. Drives the `position` theme variant on
|
|
14
|
+
* `toastViewport`. Defaults to `'top-right'` on desktop with
|
|
15
|
+
* theme-provided responsive overrides at narrow viewports.
|
|
16
|
+
*/
|
|
17
|
+
position: {
|
|
18
|
+
type: PropType<ToastViewportPosition>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Keyboard shortcut that focuses the viewport (Reka default: `'F8'`).
|
|
23
|
+
* Allows screen-reader users to jump back to recent toasts.
|
|
24
|
+
*/
|
|
25
|
+
hotkey: {
|
|
26
|
+
type: PropType<string[]>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
/** Aria label for the viewport landmark. */
|
|
30
|
+
label: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
/** HTML tag to render. */
|
|
35
|
+
as: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type ToasterProps = ExtractPublicPropTypes<typeof toasterProps>;
|
|
41
|
+
export type ToasterSlotProps = {
|
|
42
|
+
/** The entry being rendered. */
|
|
43
|
+
entry: ToastEntry;
|
|
44
|
+
/** Call to dismiss this entry from the queue. */
|
|
45
|
+
dismiss: () => void;
|
|
46
|
+
/** Resolved `toast` theme classes — pass straight to a custom layout. */
|
|
47
|
+
classes: ToastThemeClasses;
|
|
48
|
+
};
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
50
|
+
export default _default;
|
|
51
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
52
|
+
themeClass: {
|
|
53
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<ToastViewportThemeClasses>>;
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
themeVariant: {
|
|
57
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Viewport position. Drives the `position` theme variant on
|
|
62
|
+
* `toastViewport`. Defaults to `'top-right'` on desktop with
|
|
63
|
+
* theme-provided responsive overrides at narrow viewports.
|
|
64
|
+
*/
|
|
65
|
+
position: {
|
|
66
|
+
type: PropType<ToastViewportPosition>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Keyboard shortcut that focuses the viewport (Reka default: `'F8'`).
|
|
71
|
+
* Allows screen-reader users to jump back to recent toasts.
|
|
72
|
+
*/
|
|
73
|
+
hotkey: {
|
|
74
|
+
type: PropType<string[]>;
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
/** Aria label for the viewport landmark. */
|
|
78
|
+
label: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: any;
|
|
81
|
+
};
|
|
82
|
+
/** HTML tag to render. */
|
|
83
|
+
as: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
|
+
themeClass: {
|
|
91
|
+
type: PropType<import("@vuecs/core").ThemeClassesOverride<ToastViewportThemeClasses>>;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
themeVariant: {
|
|
95
|
+
type: PropType<import("@vuecs/core").VariantValues>;
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Viewport position. Drives the `position` theme variant on
|
|
100
|
+
* `toastViewport`. Defaults to `'top-right'` on desktop with
|
|
101
|
+
* theme-provided responsive overrides at narrow viewports.
|
|
102
|
+
*/
|
|
103
|
+
position: {
|
|
104
|
+
type: PropType<ToastViewportPosition>;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Keyboard shortcut that focuses the viewport (Reka default: `'F8'`).
|
|
109
|
+
* Allows screen-reader users to jump back to recent toasts.
|
|
110
|
+
*/
|
|
111
|
+
hotkey: {
|
|
112
|
+
type: PropType<string[]>;
|
|
113
|
+
default: any;
|
|
114
|
+
};
|
|
115
|
+
/** Aria label for the viewport landmark. */
|
|
116
|
+
label: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: any;
|
|
119
|
+
};
|
|
120
|
+
/** HTML tag to render. */
|
|
121
|
+
as: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
}>> & Readonly<{}>, {
|
|
126
|
+
label: string;
|
|
127
|
+
themeClass: import("@vuecs/core").ThemeClassesOverride<ToastViewportThemeClasses>;
|
|
128
|
+
themeVariant: import("@vuecs/core").VariantValues;
|
|
129
|
+
as: string;
|
|
130
|
+
position: ToastViewportPosition;
|
|
131
|
+
hotkey: string[];
|
|
132
|
+
}, SlotsType<{
|
|
133
|
+
default(props: ToasterSlotProps): unknown;
|
|
134
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
//# sourceMappingURL=Toaster.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/Toaster.vue"],"names":[],"mappings":"AAgOA,OAAO,KAAK,EACR,sBAAsB,EACtB,QAAQ,EACR,SAAS,EACT,KAAK,EACR,MAAM,KAAK,CAAC;AAWb,OAAO,KAAK,EAER,UAAU,EAGV,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,YAAY;;;;;;;;;IACd;;;;OAIG;;cACyB,QAAQ,CAAC,qBAAqB,CAAC;;;IAC3D;;;OAGG;;cACsB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;IAC3C,4CAA4C;;;;;IAE5C,0BAA0B;;;;;CAG7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,gCAAgC;IAChC,KAAK,EAAE,UAAU,CAAC;IAClB,iDAAiD;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yEAAyE;IACzE,OAAO,EAAE,iBAAiB,CAAC;CAC9B,CAAC;wBAuBmB,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;;;;;;;;IA1Dd;;;;OAIG;;cACyB,QAAQ,CAAC,qBAAqB,CAAC;;;IAC3D;;;OAGG;;cACsB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;IAC3C,4CAA4C;;;;;IAE5C,0BAA0B;;;;;;;;;;;;;;;;IAb1B;;;;OAIG;;cACyB,QAAQ,CAAC,qBAAqB,CAAC;;;IAC3D;;;OAGG;;cACsB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;IAC3C,4CAA4C;;;;;IAE5C,0BAA0B;;;;;;;;;;;;;mBAkDP,gBAAgB,GAAG,OAAO;yEA0H/C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as VCToast } from './Toast.vue';
|
|
2
|
+
export { default as VCToastProvider } from './ToastProvider.vue';
|
|
3
|
+
export { default as VCToaster } from './Toaster.vue';
|
|
4
|
+
export { default as VCToastTitle } from './ToastTitle.vue';
|
|
5
|
+
export { default as VCToastDescription } from './ToastDescription.vue';
|
|
6
|
+
export { default as VCToastAction } from './ToastAction.vue';
|
|
7
|
+
export { default as VCToastClose } from './ToastClose.vue';
|
|
8
|
+
export type { ToastProps } from './Toast.vue';
|
|
9
|
+
export type { ToastProviderProps } from './ToastProvider.vue';
|
|
10
|
+
export type { ToasterProps, ToasterSlotProps } from './Toaster.vue';
|
|
11
|
+
export type { ToastTitleProps } from './ToastTitle.vue';
|
|
12
|
+
export type { ToastDescriptionProps } from './ToastDescription.vue';
|
|
13
|
+
export type { ToastActionProps } from './ToastAction.vue';
|
|
14
|
+
export type { ToastCloseProps } from './ToastClose.vue';
|
|
15
|
+
export * from './theme';
|
|
16
|
+
export * from './types';
|
|
17
|
+
export * from './use-toast';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE3D,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|