diff --git a/components/lib/toast/BaseToast.vue b/components/lib/toast/BaseToast.vue index 54e45390b..014ec741d 100644 --- a/components/lib/toast/BaseToast.vue +++ b/components/lib/toast/BaseToast.vue @@ -47,10 +47,8 @@ export default { default: undefined }, closeButtonProps: { - type: Object, - default: () => { - return {}; - } + type: null, + default: null } }, style: ToastStyle, diff --git a/components/lib/toast/Toast.d.ts b/components/lib/toast/Toast.d.ts index 635c8d76f..24bf87c60 100755 --- a/components/lib/toast/Toast.d.ts +++ b/components/lib/toast/Toast.d.ts @@ -7,9 +7,7 @@ * @module toast * */ -import { TransitionProps, VNode } from 'vue'; -import { ComponentHooks } from '../basecomponent'; -import { ButtonPassThroughOptions } from '../button'; +import { ButtonHTMLAttributes, TransitionProps, VNode } from 'vue'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; @@ -47,20 +45,6 @@ export interface ToastPassThroughMethodOptions { global: object | undefined; } -/** - * Custom shared passthrough(pt) option method. - */ -export interface ToastSharedPassThroughMethodOptions { - /** - * Defines valid properties. - */ - props: ToastProps; - /** - * Defines current inline state. - */ - state: ToastState; -} - /** * Custom passthrough(pt) options. * @see {@link ToastProps.pt} @@ -99,17 +83,14 @@ export interface ToastPassThroughOptions { */ buttonContainer?: ToastPassThroughOptionType; /** - * /** * Used to pass attributes to the button's DOM element. - * @see {@link ButtonPassThroughOptions} + * @deprecated since v3.30.2. Use 'closeButton' option. */ - button?: ButtonPassThroughOptions; + button?: ToastPassThroughOptionType; /** - * /** - * Used to pass attributes to the close button's DOM element. - * @see {@link ButtonPassThroughOptions} + * Used to pass attributes to the button's DOM element. */ - closeButton?: ButtonPassThroughOptions; + closeButton?: ToastPassThroughOptionType; /** * Used to pass attributes to the button icon's DOM element. */ @@ -251,10 +232,10 @@ export interface ToastProps { */ successIcon?: string | undefined; /** - * Used to pass attributes to the close Button component. - * @defaultValue {} + * Used to pass all properties of the HTMLButtonElement to the close button. + * @deprecated since v3.26.0. Use 'pt' property. */ - closeButtonProps?: object | undefined; + closeButtonProps?: ButtonHTMLAttributes | undefined; /** * Used to access message options. * @type {ToastMessageOptions} diff --git a/components/lib/toast/ToastMessage.vue b/components/lib/toast/ToastMessage.vue index 3b7ca298a..f17420c13 100755 --- a/components/lib/toast/ToastMessage.vue +++ b/components/lib/toast/ToastMessage.vue @@ -11,11 +11,9 @@
- +
@@ -23,7 +21,6 @@