File tree Expand file tree Collapse file tree 4 files changed +304
-363
lines changed Expand file tree Collapse file tree 4 files changed +304
-363
lines changed Original file line number Diff line number Diff line change 36
36
"license" : " MIT" ,
37
37
"devDependencies" : {
38
38
"@iconify/json" : " ^2.2.172" ,
39
- "@microsoft/api-extractor" : " ^7.47.9 " ,
39
+ "@microsoft/api-extractor" : " ^7.47.10 " ,
40
40
"@types/node" : " ^18.19.8" ,
41
- "@unocss/reset" : " ^0.62 .4" ,
41
+ "@unocss/reset" : " ^0.63 .4" ,
42
42
"@vitejs/plugin-vue" : " ^5.1.4" ,
43
43
"@vue/tsconfig" : " ^0.5.1" ,
44
44
"@vueuse/core" : " ^11.1.0" ,
45
45
"@vueuse/head" : " ^2.0.0" ,
46
46
"clean-css" : " ^5.3.3" ,
47
47
"highlight.js" : " ^11.10.0" ,
48
- "typescript" : " ^5.6.2 " ,
49
- "unocss" : " ^0.62 .4" ,
48
+ "typescript" : " ^5.6.3 " ,
49
+ "unocss" : " ^0.63 .4" ,
50
50
"unplugin-icons" : " ^0.19.3" ,
51
51
"unplugin-vue-components" : " ^0.27.4" ,
52
- "vite" : " ^5.4.7 " ,
53
- "vue" : " ^3.5.8 " ,
52
+ "vite" : " ^5.4.9 " ,
53
+ "vue" : " ^3.5.12 " ,
54
54
"vue-tsc" : " ^2.1.6"
55
55
}
56
56
}
Original file line number Diff line number Diff line change 6
6
role =" status"
7
7
tabindex =" 0"
8
8
data-sonner-toast =" true"
9
- :class =" toastClass"
9
+ :class =" cn(
10
+ props.class,
11
+ toastClass,
12
+ classes?.toast,
13
+ toast.classes?.toast,
14
+ // @ts-ignore
15
+ classes?.[toastType],
16
+ // @ts-ignore
17
+ toast?.classes?.[toastType]
18
+ )"
10
19
:data-rich-colors =" toast.richColors ?? defaultRichColors"
11
20
:data-styled =" !Boolean(toast.component || toast?.unstyled || unstyled)"
12
21
:data-mounted =" mounted"
57
66
<component
58
67
:is =" toast.component"
59
68
v-bind =" toast.componentProps"
60
- :onCloseToast =" deleteToast "
69
+ :onCloseToast =" handleCloseToast "
61
70
/>
62
71
</template >
63
72
81
90
</div >
82
91
</template >
83
92
84
- <div data-content =" " >
93
+ <div data-content =" " :class = " cn(classes?.content, toast?.classes?.content) " >
85
94
<div data-title =" " :class =" cn(classes?.title, toast.classes?.title)" >
86
95
<template v-if =" isStringOfTitle " >
87
96
<component :is =" toast.title" v-bind =" toast.componentProps" />
You can’t perform that action at this time.
0 commit comments