@plexui/vue 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Badge/Badge.js +1 -1
- package/dist/es/components/Badge/Badge.js.map +1 -1
- package/dist/es/components/Button/Button.js +13 -5
- package/dist/es/components/Button/Button.js.map +1 -1
- package/dist/es/components/Button/ButtonLink.js +7 -1
- package/dist/es/components/Button/ButtonLink.js.map +1 -1
- package/dist/es/components/Button/NavigationButton.js +27 -0
- package/dist/es/components/Button/NavigationButton.js.map +1 -0
- package/dist/es/components/Button/NavigationGlyph.js +27 -0
- package/dist/es/components/Button/NavigationGlyph.js.map +1 -0
- package/dist/es/components/Button/index.js +1 -0
- package/dist/es/components/Button/index.js.map +1 -1
- package/dist/es/components/Checkbox/Checkbox.js +14 -4
- package/dist/es/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/es/components/DateInput/DateInput.js +7 -3
- package/dist/es/components/DateInput/DateInput.js.map +1 -1
- package/dist/es/components/DatePicker/Calendar.js +130 -86
- package/dist/es/components/DatePicker/Calendar.js.map +1 -1
- package/dist/es/components/DatePicker/CalendarNavigationIcon.js +31 -0
- package/dist/es/components/DatePicker/CalendarNavigationIcon.js.map +1 -0
- package/dist/es/components/DatePicker/DatePicker.js +16 -4
- package/dist/es/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/es/components/DatePicker/context.js.map +1 -1
- package/dist/es/components/DatePicker/useCalendarGutter.js +14 -0
- package/dist/es/components/DatePicker/useCalendarGutter.js.map +1 -0
- package/dist/es/components/DateRangePicker/Calendar.js +92 -71
- package/dist/es/components/DateRangePicker/Calendar.js.map +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js +13 -4
- package/dist/es/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/es/components/DateRangePicker/Trigger.js +1 -0
- package/dist/es/components/DateRangePicker/Trigger.js.map +1 -1
- package/dist/es/components/Dialog/Dialog.js +125 -52
- package/dist/es/components/Dialog/Dialog.js.map +1 -1
- package/dist/es/components/Dialog/index.js.map +1 -1
- package/dist/es/components/Dialog/sheetDrag.js +77 -24
- package/dist/es/components/Dialog/sheetDrag.js.map +1 -1
- package/dist/es/components/Field/Field.js +58 -5
- package/dist/es/components/Field/Field.js.map +1 -1
- package/dist/es/components/FieldGroup/FieldGroup.js +3 -1
- package/dist/es/components/FieldGroup/FieldGroup.js.map +1 -1
- package/dist/es/components/FileUpload/FileUpload.js +50 -11
- package/dist/es/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js +24 -13
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js.map +1 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.js +9 -3
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.js.map +1 -1
- package/dist/es/components/Icon/index.js +1 -0
- package/dist/es/components/Icon/index.js.map +1 -1
- package/dist/es/components/Icon/svg/Disclosure.js +10 -0
- package/dist/es/components/Icon/svg/Disclosure.js.map +1 -0
- package/dist/es/components/Indicator/LoadingIndicator.js +2 -2
- package/dist/es/components/Indicator/LoadingIndicator.js.map +1 -1
- package/dist/es/components/Input/Input.js +15 -5
- package/dist/es/components/Input/Input.js.map +1 -1
- package/dist/es/components/InputGroup/InputGroup.js +3 -1
- package/dist/es/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js +126 -151
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js.map +1 -1
- package/dist/es/components/Menu/Menu.js +217 -35
- package/dist/es/components/Menu/Menu.js.map +1 -1
- package/dist/es/components/Menu/internal.js +2 -1
- package/dist/es/components/Menu/internal.js.map +1 -1
- package/dist/es/components/OTPInput/OTPInput.js +7 -4
- package/dist/es/components/OTPInput/OTPInput.js.map +1 -1
- package/dist/es/components/Page/Page.js +93 -14
- package/dist/es/components/Page/Page.js.map +1 -1
- package/dist/es/components/Page/index.js +1 -1
- package/dist/es/components/Page/index.js.map +1 -1
- package/dist/es/components/Popover/Popover.js +16 -6
- package/dist/es/components/Popover/Popover.js.map +1 -1
- package/dist/es/components/Popover/deferredPointerDownOutside.js +6 -0
- package/dist/es/components/Popover/deferredPointerDownOutside.js.map +1 -1
- package/dist/es/components/RadioGroup/RadioGroup.js +31 -13
- package/dist/es/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/es/components/Select/Select.js +75 -25
- package/dist/es/components/Select/Select.js.map +1 -1
- package/dist/es/components/SelectControl/SelectControl.js +58 -25
- package/dist/es/components/SelectControl/SelectControl.js.map +1 -1
- package/dist/es/components/SelectControl/index.js +1 -1
- package/dist/es/components/SelectControl/index.js.map +1 -1
- package/dist/es/components/ShimmerText/ShimmerText.js +16 -3
- package/dist/es/components/ShimmerText/ShimmerText.js.map +1 -1
- package/dist/es/components/Slider/Slider.js +56 -16
- package/dist/es/components/Slider/Slider.js.map +1 -1
- package/dist/es/components/Sortable/Sortable.js +20 -13
- package/dist/es/components/Sortable/Sortable.js.map +1 -1
- package/dist/es/components/Switch/Switch.js +6 -3
- package/dist/es/components/Switch/Switch.js.map +1 -1
- package/dist/es/components/Tabs/Tabs.js +12 -11
- package/dist/es/components/Tabs/Tabs.js.map +1 -1
- package/dist/es/components/TagInput/TagInput.js +46 -6
- package/dist/es/components/TagInput/TagInput.js.map +1 -1
- package/dist/es/components/Textarea/Textarea.js +13 -2
- package/dist/es/components/Textarea/Textarea.js.map +1 -1
- package/dist/es/components/Toast/ToastRenderer.js +144 -0
- package/dist/es/components/Toast/ToastRenderer.js.map +1 -0
- package/dist/es/components/Toast/Toaster.js +23 -1
- package/dist/es/components/Toast/Toaster.js.map +1 -1
- package/dist/es/components/Toast/toastLifecycle.js +283 -0
- package/dist/es/components/Toast/toastLifecycle.js.map +1 -0
- package/dist/es/components/Toolbar/Toolbar.js +107 -0
- package/dist/es/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/es/components/Toolbar/index.js +2 -0
- package/dist/es/components/Toolbar/index.js.map +1 -0
- package/dist/es/components/Tooltip/CopyTooltip.js +39 -13
- package/dist/es/components/Tooltip/CopyTooltip.js.map +1 -1
- package/dist/es/components/Tooltip/Tooltip.js +35 -14
- package/dist/es/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/es/composables/useFloatingBoundary.js +48 -0
- package/dist/es/composables/useFloatingBoundary.js.map +1 -0
- package/dist/es/composables/usePhoneSubmenu.js +19 -0
- package/dist/es/composables/usePhoneSubmenu.js.map +1 -0
- package/dist/es/lib/copyToClipboard.js +16 -7
- package/dist/es/lib/copyToClipboard.js.map +1 -1
- package/dist/es/lib/floatingBoundary.js +90 -0
- package/dist/es/lib/floatingBoundary.js.map +1 -0
- package/dist/es/lib/focusRestore.js +56 -0
- package/dist/es/lib/focusRestore.js.map +1 -0
- package/dist/es/lib/helpers.js +0 -18
- package/dist/es/lib/helpers.js.map +1 -1
- package/dist/es/lib/inputMode.js +9 -0
- package/dist/es/lib/inputMode.js.map +1 -0
- package/dist/es/lib/menuInitialFocus.js +100 -0
- package/dist/es/lib/menuInitialFocus.js.map +1 -0
- package/dist/es/lib/menuSubmenuPlacement.js +219 -0
- package/dist/es/lib/menuSubmenuPlacement.js.map +1 -0
- package/dist/es/lib/observeTextareaWidth.js +49 -0
- package/dist/es/lib/observeTextareaWidth.js.map +1 -0
- package/dist/es/lib/selectPress.js +34 -0
- package/dist/es/lib/selectPress.js.map +1 -0
- package/dist/es/lib/sortable.js +74 -20
- package/dist/es/lib/sortable.js.map +1 -1
- package/dist/types/components/Button/Button.d.ts +6 -2
- package/dist/types/components/Button/ButtonLink.d.ts +6 -2
- package/dist/types/components/Button/NavigationButton.d.ts +27 -0
- package/dist/types/components/Button/NavigationGlyph.d.ts +16 -0
- package/dist/types/components/Button/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +12 -12
- package/dist/types/components/DateInput/DateInput.d.ts +4 -4
- package/dist/types/components/DatePicker/CalendarNavigationIcon.d.ts +6 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +13 -13
- package/dist/types/components/DatePicker/context.d.ts +1 -0
- package/dist/types/components/DatePicker/useCalendarGutter.d.ts +2 -0
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +13 -13
- package/dist/types/components/Dialog/Dialog.d.ts +46 -11
- package/dist/types/components/Dialog/index.d.ts +1 -1
- package/dist/types/components/Field/Field.d.ts +2 -2
- package/dist/types/components/FileUpload/FileUpload.d.ts +6 -6
- package/dist/types/components/FloatingLabelInput/FloatingLabelInput.d.ts +4 -4
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/svg/Disclosure.d.ts +3 -0
- package/dist/types/components/Indicator/LoadingIndicator.d.ts +2 -2
- package/dist/types/components/Input/Input.d.ts +2 -2
- package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts +8 -8
- package/dist/types/components/Menu/Menu.d.ts +18 -25
- package/dist/types/components/OTPInput/OTPInput.d.ts +6 -6
- package/dist/types/components/Page/Page.d.ts +48 -7
- package/dist/types/components/Page/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +17 -6
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +10 -10
- package/dist/types/components/SelectControl/index.d.ts +1 -1
- package/dist/types/components/Sortable/Sortable.d.ts +8 -8
- package/dist/types/components/Switch/Switch.d.ts +34 -12
- package/dist/types/components/Tabs/Tabs.d.ts +6 -6
- package/dist/types/components/TagInput/TagInput.d.ts +4 -4
- package/dist/types/components/Textarea/Textarea.d.ts +2 -2
- package/dist/types/components/Toast/ToastRenderer.d.ts +79 -0
- package/dist/types/components/Toast/Toaster.d.ts +6 -2
- package/dist/types/components/Toast/toastLifecycle.d.ts +90 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +149 -0
- package/dist/types/components/Toolbar/index.d.ts +1 -0
- package/dist/types/components/Tooltip/CopyTooltip.d.ts +2 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/types/composables/useFloatingBoundary.d.ts +24 -0
- package/dist/types/composables/usePhoneSubmenu.d.ts +3 -0
- package/dist/types/lib/floatingBoundary.d.ts +9 -0
- package/dist/types/lib/focusRestore.d.ts +5 -0
- package/dist/types/lib/helpers.d.ts +0 -4
- package/dist/types/lib/inputMode.d.ts +7 -0
- package/dist/types/lib/menuInitialFocus.d.ts +9 -0
- package/dist/types/lib/menuSubmenuPlacement.d.ts +44 -0
- package/dist/types/lib/observeTextareaWidth.d.ts +2 -0
- package/dist/types/lib/selectPress.d.ts +23 -0
- package/dist/types/lib/sortable.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type PropType } from "vue";
|
|
2
|
+
export type PageBarBackground = "glass" | "solid";
|
|
2
3
|
export type PageWidth = "full" | "wide" | "column";
|
|
3
4
|
declare const PageComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
/**
|
|
@@ -12,6 +13,11 @@ declare const PageComponent: import("vue").DefineComponent<import("vue").Extract
|
|
|
12
13
|
type: PropType<PageWidth>;
|
|
13
14
|
default: string;
|
|
14
15
|
};
|
|
16
|
+
/** Mobile canvas and grouped-field palette. @default "plain" */
|
|
17
|
+
surface: {
|
|
18
|
+
type: PropType<"plain" | "grouped">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
15
21
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
22
|
[key: string]: any;
|
|
17
23
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,12 +32,19 @@ declare const PageComponent: import("vue").DefineComponent<import("vue").Extract
|
|
|
26
32
|
type: PropType<PageWidth>;
|
|
27
33
|
default: string;
|
|
28
34
|
};
|
|
35
|
+
/** Mobile canvas and grouped-field palette. @default "plain" */
|
|
36
|
+
surface: {
|
|
37
|
+
type: PropType<"plain" | "grouped">;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
29
40
|
}>> & Readonly<{}>, {
|
|
30
41
|
width: PageWidth;
|
|
42
|
+
surface: "plain" | "grouped";
|
|
31
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
44
|
/** Props of `Page`. */
|
|
33
45
|
export type PageProps = {
|
|
34
46
|
width?: PageWidth;
|
|
47
|
+
surface?: "plain" | "grouped";
|
|
35
48
|
} & HTMLAttributes;
|
|
36
49
|
export declare const Page: typeof PageComponent & {
|
|
37
50
|
new (): {
|
|
@@ -41,8 +54,8 @@ export declare const Page: typeof PageComponent & {
|
|
|
41
54
|
/** The band above the content, one column with it (React `Page.Header`). */
|
|
42
55
|
export declare const PageHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
43
56
|
/**
|
|
44
|
-
* Shows
|
|
45
|
-
*
|
|
57
|
+
* Shows a divider once the content has scrolled under the header.
|
|
58
|
+
* Turn it off when the content already draws a line of
|
|
46
59
|
* its own at that place.
|
|
47
60
|
* @default true
|
|
48
61
|
*/
|
|
@@ -50,12 +63,16 @@ export declare const PageHeader: import("vue").DefineComponent<import("vue").Ext
|
|
|
50
63
|
type: BooleanConstructor;
|
|
51
64
|
default: boolean;
|
|
52
65
|
};
|
|
66
|
+
background: {
|
|
67
|
+
type: PropType<PageBarBackground>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
53
70
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
71
|
[key: string]: any;
|
|
55
72
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
73
|
/**
|
|
57
|
-
* Shows
|
|
58
|
-
*
|
|
74
|
+
* Shows a divider once the content has scrolled under the header.
|
|
75
|
+
* Turn it off when the content already draws a line of
|
|
59
76
|
* its own at that place.
|
|
60
77
|
* @default true
|
|
61
78
|
*/
|
|
@@ -63,13 +80,22 @@ export declare const PageHeader: import("vue").DefineComponent<import("vue").Ext
|
|
|
63
80
|
type: BooleanConstructor;
|
|
64
81
|
default: boolean;
|
|
65
82
|
};
|
|
83
|
+
background: {
|
|
84
|
+
type: PropType<PageBarBackground>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
66
87
|
}>> & Readonly<{}>, {
|
|
88
|
+
background: PageBarBackground;
|
|
67
89
|
divider: boolean;
|
|
68
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
69
91
|
/** The row of the title and the actions (React `Page.Bar`). */
|
|
70
92
|
export declare const PageBar: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
93
|
[key: string]: any;
|
|
72
94
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
95
|
+
/** Navigation controls on the leading side (React `Page.Leading`). */
|
|
96
|
+
export declare const PageLeading: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
99
|
/** Title with what stands beside it, a subtitle under it on a phone (React `Page.Heading`). */
|
|
74
100
|
export declare const PageHeading: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
101
|
[key: string]: any;
|
|
@@ -78,7 +104,7 @@ export declare const PageHeading: import("vue").DefineComponent<{}, () => import
|
|
|
78
104
|
export declare const PageTitle: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
79
105
|
[key: string]: any;
|
|
80
106
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
|
-
/** Status of the page, a
|
|
107
|
+
/** Status of the page, a flow container for badges and text (React `Page.Subtitle`). */
|
|
82
108
|
export declare const PageSubtitle: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
83
109
|
[key: string]: any;
|
|
84
110
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -113,9 +139,24 @@ export declare const PageContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
113
139
|
fill: boolean;
|
|
114
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
141
|
/** Actions that remain below the scrolling content (React `Page.Footer`). */
|
|
116
|
-
export declare const PageFooter: import("vue").DefineComponent<
|
|
142
|
+
export declare const PageFooter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
143
|
+
background: {
|
|
144
|
+
type: PropType<PageBarBackground>;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
117
148
|
[key: string]: any;
|
|
118
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
149
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
150
|
+
background: {
|
|
151
|
+
type: PropType<PageBarBackground>;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
}>> & Readonly<{}>, {
|
|
155
|
+
background: PageBarBackground;
|
|
156
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
157
|
/** Props of the Page parts: native attributes of their element. */
|
|
120
158
|
export type PageSlotProps = HTMLAttributes;
|
|
159
|
+
export type PageFooterProps = PageSlotProps & {
|
|
160
|
+
background?: PageBarBackground;
|
|
161
|
+
};
|
|
121
162
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Page, PageActions, PageBar, PageContent, PageFooter, PageHeader, PageHeading, PageSubtitle, PageTitle, type PageProps, type PageSlotProps, type PageWidth, } from "./Page.js";
|
|
1
|
+
export { Page, PageActions, PageBar, PageContent, PageFooter, PageHeader, PageHeading, PageLeading, PageSubtitle, PageTitle, type PageProps, type PageFooterProps, type PageBarBackground, type PageSlotProps, type PageWidth, } from "./Page.js";
|
|
@@ -20,7 +20,7 @@ declare const PopoverComponent: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
20
20
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
21
|
[key: string]: any;
|
|
22
22
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
"update:open": (
|
|
23
|
+
"update:open": (nextState: boolean) => boolean;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
25
25
|
/** Controlled visibility (`v-model:open`); uncontrolled when omitted */
|
|
26
26
|
open: {
|
|
@@ -38,7 +38,7 @@ declare const PopoverComponent: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
40
|
}>> & Readonly<{
|
|
41
|
-
"onUpdate:open"?: ((
|
|
41
|
+
"onUpdate:open"?: ((nextState: boolean) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
43
|
open: boolean;
|
|
44
44
|
showOnHover: boolean;
|
|
@@ -52,11 +52,11 @@ declare const PopoverComponent: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
52
52
|
export declare const PopoverTrigger: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
53
|
[key: string]: any;
|
|
54
54
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
-
pointerdown: (
|
|
56
|
-
click: (
|
|
55
|
+
pointerdown: (event: PointerEvent) => boolean;
|
|
56
|
+
click: (event: MouseEvent) => boolean;
|
|
57
57
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
58
|
-
onClick?: ((
|
|
59
|
-
onPointerdown?: ((
|
|
58
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
59
|
+
onPointerdown?: ((event: PointerEvent) => any) | undefined;
|
|
60
60
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
61
|
/**
|
|
62
62
|
* The floating panel. `class` lands on the panel. The default slot receives
|
|
@@ -68,6 +68,11 @@ export declare const PopoverContent: import("vue").DefineComponent<ExtractPropTy
|
|
|
68
68
|
type: BooleanConstructor;
|
|
69
69
|
default: undefined;
|
|
70
70
|
};
|
|
71
|
+
/** Distance from viewport and scroll container boundaries, in pixels. @default 20 */
|
|
72
|
+
collisionPadding: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
71
76
|
/** `width` of the popover; numbers are pixels. @default "auto" */
|
|
72
77
|
width: PropType<number | "auto">;
|
|
73
78
|
/** `min-width` of the popover; numbers are pixels. @default 300 */
|
|
@@ -103,6 +108,11 @@ export declare const PopoverContent: import("vue").DefineComponent<ExtractPropTy
|
|
|
103
108
|
type: BooleanConstructor;
|
|
104
109
|
default: undefined;
|
|
105
110
|
};
|
|
111
|
+
/** Distance from viewport and scroll container boundaries, in pixels. @default 20 */
|
|
112
|
+
collisionPadding: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
106
116
|
/** `width` of the popover; numbers are pixels. @default "auto" */
|
|
107
117
|
width: PropType<number | "auto">;
|
|
108
118
|
/** `min-width` of the popover; numbers are pixels. @default 300 */
|
|
@@ -133,6 +143,7 @@ export declare const PopoverContent: import("vue").DefineComponent<ExtractPropTy
|
|
|
133
143
|
}>> & Readonly<{}>, {
|
|
134
144
|
sideOffset: number;
|
|
135
145
|
avoidCollisions: boolean;
|
|
146
|
+
collisionPadding: number;
|
|
136
147
|
translucent: boolean;
|
|
137
148
|
autoFocus: boolean;
|
|
138
149
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,9 +3,9 @@ type Direction = "col" | "row";
|
|
|
3
3
|
declare const RadioGroupComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
/** Initial selected value when uncontrolled */
|
|
5
5
|
defaultValue: StringConstructor;
|
|
6
|
-
/** Controlled
|
|
6
|
+
/** Controlled selection, including `null` for none. Bind with `v-model:value`; leave undefined for an uncontrolled group. */
|
|
7
7
|
value: {
|
|
8
|
-
type:
|
|
8
|
+
type: PropType<string | null>;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
11
11
|
/** Name submitted with the owning form */
|
|
@@ -28,16 +28,16 @@ declare const RadioGroupComponent: import("vue").DefineComponent<import("vue").E
|
|
|
28
28
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
29
|
[key: string]: any;
|
|
30
30
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
/** The
|
|
32
|
-
"update:value": (
|
|
31
|
+
/** The selection changed (`v-model:value`). Resetting an initially empty form reports `null`. */
|
|
32
|
+
"update:value": (value: string | null) => boolean;
|
|
33
33
|
/** Same payload as `update:value`, named after React's `onChange` */
|
|
34
|
-
change: (
|
|
34
|
+
change: (value: string | null) => boolean;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
/** Initial selected value when uncontrolled */
|
|
37
37
|
defaultValue: StringConstructor;
|
|
38
|
-
/** Controlled
|
|
38
|
+
/** Controlled selection, including `null` for none. Bind with `v-model:value`; leave undefined for an uncontrolled group. */
|
|
39
39
|
value: {
|
|
40
|
-
type:
|
|
40
|
+
type: PropType<string | null>;
|
|
41
41
|
default: undefined;
|
|
42
42
|
};
|
|
43
43
|
/** Name submitted with the owning form */
|
|
@@ -58,11 +58,11 @@ declare const RadioGroupComponent: import("vue").DefineComponent<import("vue").E
|
|
|
58
58
|
default: boolean;
|
|
59
59
|
};
|
|
60
60
|
}>> & Readonly<{
|
|
61
|
-
onChange?: ((
|
|
62
|
-
"onUpdate:value"?: ((
|
|
61
|
+
onChange?: ((value: string | null) => any) | undefined;
|
|
62
|
+
"onUpdate:value"?: ((value: string | null) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
required: boolean;
|
|
65
|
-
value: string;
|
|
65
|
+
value: string | null;
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
direction: Direction;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SelectControl, type DropdownIconType, type SelectControlProps } from "./SelectControl.js";
|
|
1
|
+
export { SelectControl, DropdownIcon, type DropdownIconType, type SelectControlProps } from "./SelectControl.js";
|
|
@@ -40,12 +40,12 @@ export declare const Sortable: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
40
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
41
41
|
[key: string]: any;
|
|
42
42
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
-
"update:value": (
|
|
44
|
-
change: (
|
|
43
|
+
"update:value": (value: unknown[]) => boolean;
|
|
44
|
+
change: (value: unknown[]) => boolean;
|
|
45
45
|
/** An item moved, inside this list or out of it. Out of it the app updates both lists: `update:value` is for a move inside one. */
|
|
46
|
-
move: (
|
|
46
|
+
move: (move: SortableMove) => boolean;
|
|
47
47
|
/** A drag rests on a `SortableTarget` of the group: open what it stands for or go there. */
|
|
48
|
-
hold: (
|
|
48
|
+
hold: (name: string) => boolean;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
/** The list, in the order of the children. Bind with `v-model:value`. */
|
|
51
51
|
value: {
|
|
@@ -83,10 +83,10 @@ export declare const Sortable: import("vue").DefineComponent<import("vue").Extra
|
|
|
83
83
|
default: undefined;
|
|
84
84
|
};
|
|
85
85
|
}>> & Readonly<{
|
|
86
|
-
onChange?: ((
|
|
87
|
-
"onUpdate:value"?: ((
|
|
88
|
-
onMove?: ((
|
|
89
|
-
onHold?: ((
|
|
86
|
+
onChange?: ((value: unknown[]) => any) | undefined;
|
|
87
|
+
"onUpdate:value"?: ((value: unknown[]) => any) | undefined;
|
|
88
|
+
onMove?: ((move: SortableMove) => any) | undefined;
|
|
89
|
+
onHold?: ((name: string) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
disabled: boolean;
|
|
92
92
|
name: string;
|
|
@@ -12,6 +12,11 @@ declare const SwitchComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: undefined;
|
|
14
14
|
};
|
|
15
|
+
/** Checked track color. The accent option uses the platform toggle green. @default primary */
|
|
16
|
+
color: {
|
|
17
|
+
type: PropType<"primary" | "accent">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
15
20
|
/** Optional accessible label rendered next to the switch. The `label` slot takes rich content. */
|
|
16
21
|
label: StringConstructor;
|
|
17
22
|
/** Optional description rendered below the label, linked via `aria-describedby`. The `description` slot takes rich content. */
|
|
@@ -39,11 +44,11 @@ declare const SwitchComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
39
44
|
[key: string]: any;
|
|
40
45
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
46
|
/** The state of the switch changed */
|
|
42
|
-
"update:checked": (
|
|
47
|
+
"update:checked": (checked: boolean) => boolean;
|
|
43
48
|
/** The switch gained focus */
|
|
44
|
-
focus: (
|
|
49
|
+
focus: (event: FocusEvent) => boolean;
|
|
45
50
|
/** The switch lost focus */
|
|
46
|
-
blur: (
|
|
51
|
+
blur: (event: FocusEvent) => boolean;
|
|
47
52
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
53
|
/** The `id` of the switch. */
|
|
49
54
|
id: StringConstructor;
|
|
@@ -57,6 +62,11 @@ declare const SwitchComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
57
62
|
type: BooleanConstructor;
|
|
58
63
|
default: undefined;
|
|
59
64
|
};
|
|
65
|
+
/** Checked track color. The accent option uses the platform toggle green. @default primary */
|
|
66
|
+
color: {
|
|
67
|
+
type: PropType<"primary" | "accent">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
60
70
|
/** Optional accessible label rendered next to the switch. The `label` slot takes rich content. */
|
|
61
71
|
label: StringConstructor;
|
|
62
72
|
/** Optional description rendered below the label, linked via `aria-describedby`. The `description` slot takes rich content. */
|
|
@@ -81,12 +91,13 @@ declare const SwitchComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
81
91
|
default: string;
|
|
82
92
|
};
|
|
83
93
|
}>> & Readonly<{
|
|
84
|
-
onBlur?: ((
|
|
85
|
-
onFocus?: ((
|
|
86
|
-
"onUpdate:checked"?: ((
|
|
94
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
95
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
96
|
+
"onUpdate:checked"?: ((checked: boolean) => any) | undefined;
|
|
87
97
|
}>, {
|
|
88
98
|
required: boolean;
|
|
89
99
|
disabled: boolean;
|
|
100
|
+
color: "primary" | "accent";
|
|
90
101
|
checked: boolean;
|
|
91
102
|
defaultChecked: boolean;
|
|
92
103
|
labelPosition: "end" | "start";
|
|
@@ -106,6 +117,11 @@ export declare const Switch: import("vue").DefineComponent<import("vue").Extract
|
|
|
106
117
|
type: BooleanConstructor;
|
|
107
118
|
default: undefined;
|
|
108
119
|
};
|
|
120
|
+
/** Checked track color. The accent option uses the platform toggle green. @default primary */
|
|
121
|
+
color: {
|
|
122
|
+
type: PropType<"primary" | "accent">;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
109
125
|
/** Optional accessible label rendered next to the switch. The `label` slot takes rich content. */
|
|
110
126
|
label: StringConstructor;
|
|
111
127
|
/** Optional description rendered below the label, linked via `aria-describedby`. The `description` slot takes rich content. */
|
|
@@ -133,11 +149,11 @@ export declare const Switch: import("vue").DefineComponent<import("vue").Extract
|
|
|
133
149
|
[key: string]: any;
|
|
134
150
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
135
151
|
/** The state of the switch changed */
|
|
136
|
-
"update:checked": (
|
|
152
|
+
"update:checked": (checked: boolean) => boolean;
|
|
137
153
|
/** The switch gained focus */
|
|
138
|
-
focus: (
|
|
154
|
+
focus: (event: FocusEvent) => boolean;
|
|
139
155
|
/** The switch lost focus */
|
|
140
|
-
blur: (
|
|
156
|
+
blur: (event: FocusEvent) => boolean;
|
|
141
157
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
142
158
|
/** The `id` of the switch. */
|
|
143
159
|
id: StringConstructor;
|
|
@@ -151,6 +167,11 @@ export declare const Switch: import("vue").DefineComponent<import("vue").Extract
|
|
|
151
167
|
type: BooleanConstructor;
|
|
152
168
|
default: undefined;
|
|
153
169
|
};
|
|
170
|
+
/** Checked track color. The accent option uses the platform toggle green. @default primary */
|
|
171
|
+
color: {
|
|
172
|
+
type: PropType<"primary" | "accent">;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
154
175
|
/** Optional accessible label rendered next to the switch. The `label` slot takes rich content. */
|
|
155
176
|
label: StringConstructor;
|
|
156
177
|
/** Optional description rendered below the label, linked via `aria-describedby`. The `description` slot takes rich content. */
|
|
@@ -175,12 +196,13 @@ export declare const Switch: import("vue").DefineComponent<import("vue").Extract
|
|
|
175
196
|
default: string;
|
|
176
197
|
};
|
|
177
198
|
}>> & Readonly<{
|
|
178
|
-
onBlur?: ((
|
|
179
|
-
onFocus?: ((
|
|
180
|
-
"onUpdate:checked"?: ((
|
|
199
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
200
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
201
|
+
"onUpdate:checked"?: ((checked: boolean) => any) | undefined;
|
|
181
202
|
}>, {
|
|
182
203
|
required: boolean;
|
|
183
204
|
disabled: boolean;
|
|
205
|
+
color: "primary" | "accent";
|
|
184
206
|
checked: boolean;
|
|
185
207
|
defaultChecked: boolean;
|
|
186
208
|
labelPosition: "end" | "start";
|
|
@@ -146,11 +146,11 @@ declare const TabsPublic: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
146
146
|
[key: string]: any;
|
|
147
147
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
148
148
|
/** A new value was selected (`v-model:value`) */
|
|
149
|
-
"update:value": (
|
|
149
|
+
"update:value": (value: string) => boolean;
|
|
150
150
|
/** Same payload as `update:value`, named after React's `onChange` */
|
|
151
|
-
change: (
|
|
151
|
+
change: (value: string) => boolean;
|
|
152
152
|
/** Any click on the control, even if a new value was not selected */
|
|
153
|
-
click: (
|
|
153
|
+
click: (event: MouseEvent) => boolean;
|
|
154
154
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
155
|
/**
|
|
156
156
|
* What happens to tabs that do not fit in one row: the strip scrolls
|
|
@@ -217,9 +217,9 @@ declare const TabsPublic: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
217
217
|
default: boolean;
|
|
218
218
|
};
|
|
219
219
|
}>> & Readonly<{
|
|
220
|
-
onChange?: ((
|
|
221
|
-
onClick?: ((
|
|
222
|
-
"onUpdate:value"?: ((
|
|
220
|
+
onChange?: ((value: string) => any) | undefined;
|
|
221
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
222
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
223
223
|
}>, {
|
|
224
224
|
disabled: boolean;
|
|
225
225
|
orientation: TabsOrientation;
|
|
@@ -66,8 +66,8 @@ export declare const TagInput: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
66
|
}>, () => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
67
|
[key: string]: any;
|
|
68
68
|
}> | null)[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
-
"update:value": (
|
|
70
|
-
change: (
|
|
69
|
+
"update:value": (tags: Tag[]) => true;
|
|
70
|
+
change: (tags: Tag[]) => true;
|
|
71
71
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
72
|
/** The state of the tag input when it is initially rendered, used when uncontrolled */
|
|
73
73
|
defaultValue: {
|
|
@@ -123,8 +123,8 @@ export declare const TagInput: import("vue").DefineComponent<import("vue").Extra
|
|
|
123
123
|
default: boolean;
|
|
124
124
|
};
|
|
125
125
|
}>> & Readonly<{
|
|
126
|
-
onChange?: ((
|
|
127
|
-
"onUpdate:value"?: ((
|
|
126
|
+
onChange?: ((tags: Tag[]) => any) | undefined;
|
|
127
|
+
"onUpdate:value"?: ((tags: Tag[]) => any) | undefined;
|
|
128
128
|
}>, {
|
|
129
129
|
defaultValue: Tag[];
|
|
130
130
|
disabled: boolean;
|
|
@@ -74,7 +74,7 @@ declare const TextareaComponent: import("vue").DefineComponent<import("vue").Ext
|
|
|
74
74
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
75
|
[key: string]: any;
|
|
76
76
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
77
|
-
"update:value": (
|
|
77
|
+
"update:value": (value: string) => boolean;
|
|
78
78
|
/** Fired when the browser autofills the textarea */
|
|
79
79
|
autofill: () => true;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -149,7 +149,7 @@ declare const TextareaComponent: import("vue").DefineComponent<import("vue").Ext
|
|
|
149
149
|
/** The textarea's `autocomplete` attribute */
|
|
150
150
|
autoComplete: StringConstructor;
|
|
151
151
|
}>> & Readonly<{
|
|
152
|
-
"onUpdate:value"?: ((
|
|
152
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
153
153
|
onAutofill?: (() => any) | undefined;
|
|
154
154
|
}>, {
|
|
155
155
|
invalid: boolean;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { type CSSProperties, type PropType } from "vue";
|
|
2
|
+
import { type ToasterProps } from "vue-sonner";
|
|
3
|
+
/** Owns presentation/interaction only; vue-sonner remains the public toast store. */
|
|
4
|
+
export declare const ToastRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
id: StringConstructor;
|
|
6
|
+
position: PropType<ToasterProps["position"]>;
|
|
7
|
+
duration: NumberConstructor;
|
|
8
|
+
gap: NumberConstructor;
|
|
9
|
+
visibleToasts: NumberConstructor;
|
|
10
|
+
expand: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
closeButton: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
invert: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
richColors: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
theme: PropType<ToasterProps["theme"]>;
|
|
27
|
+
hotkey: PropType<string[]>;
|
|
28
|
+
dir: PropType<ToasterProps["dir"]>;
|
|
29
|
+
swipeDirections: PropType<ToasterProps["swipeDirections"]>;
|
|
30
|
+
icons: PropType<ToasterProps["icons"]>;
|
|
31
|
+
containerAriaLabel: StringConstructor;
|
|
32
|
+
offset: PropType<ToasterProps["offset"]>;
|
|
33
|
+
mobileOffset: PropType<ToasterProps["mobileOffset"]>;
|
|
34
|
+
class: StringConstructor;
|
|
35
|
+
style: PropType<CSSProperties>;
|
|
36
|
+
toastOptions: PropType<ToasterProps["toastOptions"]>;
|
|
37
|
+
closeButtonPosition: PropType<ToasterProps["closeButtonPosition"]>;
|
|
38
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
id: StringConstructor;
|
|
42
|
+
position: PropType<ToasterProps["position"]>;
|
|
43
|
+
duration: NumberConstructor;
|
|
44
|
+
gap: NumberConstructor;
|
|
45
|
+
visibleToasts: NumberConstructor;
|
|
46
|
+
expand: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
closeButton: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
invert: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
richColors: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
theme: PropType<ToasterProps["theme"]>;
|
|
63
|
+
hotkey: PropType<string[]>;
|
|
64
|
+
dir: PropType<ToasterProps["dir"]>;
|
|
65
|
+
swipeDirections: PropType<ToasterProps["swipeDirections"]>;
|
|
66
|
+
icons: PropType<ToasterProps["icons"]>;
|
|
67
|
+
containerAriaLabel: StringConstructor;
|
|
68
|
+
offset: PropType<ToasterProps["offset"]>;
|
|
69
|
+
mobileOffset: PropType<ToasterProps["mobileOffset"]>;
|
|
70
|
+
class: StringConstructor;
|
|
71
|
+
style: PropType<CSSProperties>;
|
|
72
|
+
toastOptions: PropType<ToasterProps["toastOptions"]>;
|
|
73
|
+
closeButtonPosition: PropType<ToasterProps["closeButtonPosition"]>;
|
|
74
|
+
}>> & Readonly<{}>, {
|
|
75
|
+
closeButton: boolean;
|
|
76
|
+
expand: boolean;
|
|
77
|
+
invert: boolean;
|
|
78
|
+
richColors: boolean;
|
|
79
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -21,6 +21,8 @@ declare const ToasterComponent: import("vue").DefineComponent<import("vue").Extr
|
|
|
21
21
|
};
|
|
22
22
|
/** Distance from the viewport edge */
|
|
23
23
|
offset: PropType<SonnerToasterProps["offset"]>;
|
|
24
|
+
/** Mobile distance from each safe viewport edge; explicit values override the default. */
|
|
25
|
+
mobileOffset: PropType<SonnerToasterProps["mobileOffset"]>;
|
|
24
26
|
/** Gap between stacked toasts in px */
|
|
25
27
|
gap: NumberConstructor;
|
|
26
28
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -38,15 +40,17 @@ declare const ToasterComponent: import("vue").DefineComponent<import("vue").Extr
|
|
|
38
40
|
};
|
|
39
41
|
/** Distance from the viewport edge */
|
|
40
42
|
offset: PropType<SonnerToasterProps["offset"]>;
|
|
43
|
+
/** Mobile distance from each safe viewport edge; explicit values override the default. */
|
|
44
|
+
mobileOffset: PropType<SonnerToasterProps["mobileOffset"]>;
|
|
41
45
|
/** Gap between stacked toasts in px */
|
|
42
46
|
gap: NumberConstructor;
|
|
43
47
|
}>> & Readonly<{}>, {
|
|
44
|
-
position: ("top-left" | "top-
|
|
48
|
+
position: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
|
|
45
49
|
duration: number;
|
|
46
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
51
|
type ToasterOwnProps = InstanceType<typeof ToasterComponent>["$props"];
|
|
48
52
|
/** Toaster props plus the vue-sonner `Toaster` props it forwards. */
|
|
49
|
-
export type ToasterProps = ToasterOwnProps & Omit<SonnerToasterProps, "position" | "duration" | "closeButton" | "offset" | "gap" | "theme" | "richColors" | "toastOptions" | "style">;
|
|
53
|
+
export type ToasterProps = ToasterOwnProps & Omit<SonnerToasterProps, "position" | "duration" | "closeButton" | "offset" | "mobileOffset" | "gap" | "theme" | "richColors" | "toastOptions" | "style">;
|
|
50
54
|
/**
|
|
51
55
|
* Toast viewport. Every other vue-sonner `Toaster` prop (`expand`,
|
|
52
56
|
* `visible-toasts`, `hotkey`, `dir`, `swipe-directions`, ...) is forwarded,
|