@youcan/celeste 0.6.72 → 0.6.74

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.
Files changed (325) hide show
  1. package/dist/celeste.css +58 -56
  2. package/dist/cjs/alert.js +32 -32
  3. package/dist/cjs/badge.js +17 -14
  4. package/dist/cjs/button.js +6 -6
  5. package/dist/cjs/checkbox-card.js +33 -33
  6. package/dist/cjs/checkbox-label.js +31 -31
  7. package/dist/cjs/chunks/alpha-slider.js +12 -12
  8. package/dist/cjs/chunks/checkbox.js +7 -7
  9. package/dist/cjs/chunks/collapsible-content.js +6 -6
  10. package/dist/cjs/chunks/collapsible-trigger.js +5 -5
  11. package/dist/cjs/chunks/collapsible.js +6 -6
  12. package/dist/cjs/chunks/combobox-anchor.js +8 -8
  13. package/dist/cjs/chunks/content-divider.vue_vue_type_style_index_0_lang.js +15 -15
  14. package/dist/cjs/chunks/counter-input.js +13 -13
  15. package/dist/cjs/chunks/dropdown-menu-sub.js +6 -6
  16. package/dist/cjs/chunks/index.js +2292 -2289
  17. package/dist/cjs/chunks/index2.js +14 -14
  18. package/dist/cjs/chunks/index3.js +28 -28
  19. package/dist/cjs/chunks/index4.js +125 -96
  20. package/dist/cjs/chunks/index5.js +4720 -4015
  21. package/dist/cjs/chunks/modal-close.js +5 -5
  22. package/dist/cjs/chunks/modal-trigger.js +5 -5
  23. package/dist/cjs/chunks/modal.js +6 -6
  24. package/dist/cjs/chunks/pagination-first.js +9 -9
  25. package/dist/cjs/chunks/pagination-item.js +6 -6
  26. package/dist/cjs/chunks/pagination-last.js +9 -9
  27. package/dist/cjs/chunks/pagination-next.js +9 -9
  28. package/dist/cjs/chunks/pagination-previous.js +9 -9
  29. package/dist/cjs/chunks/popover.js +6 -6
  30. package/dist/cjs/chunks/radio-group-item.js +7 -7
  31. package/dist/cjs/chunks/radio-group.js +8 -8
  32. package/dist/cjs/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +742 -45
  33. package/dist/cjs/chunks/scroll-area.js +11 -11
  34. package/dist/cjs/chunks/select-group.js +5 -5
  35. package/dist/cjs/chunks/select.js +7 -7
  36. package/dist/cjs/chunks/sheet-trigger.js +5 -5
  37. package/dist/cjs/chunks/sheet.js +6 -6
  38. package/dist/cjs/chunks/sidebar-content.js +5 -5
  39. package/dist/cjs/chunks/sidebar-element.js +6 -6
  40. package/dist/cjs/chunks/sidebar-footer.js +5 -5
  41. package/dist/cjs/chunks/sidebar-group-label.js +6 -6
  42. package/dist/cjs/chunks/sidebar-group.js +5 -5
  43. package/dist/cjs/chunks/sidebar-header.js +5 -5
  44. package/dist/cjs/chunks/sidebar-menu-action.js +6 -6
  45. package/dist/cjs/chunks/sidebar-menu-badge.js +4 -4
  46. package/dist/cjs/chunks/sidebar-menu-button.js +7 -7
  47. package/dist/cjs/chunks/sidebar-menu-item.js +5 -5
  48. package/dist/cjs/chunks/sidebar-menu-sub-button.js +6 -6
  49. package/dist/cjs/chunks/sidebar-menu-sub-item.js +5 -5
  50. package/dist/cjs/chunks/sidebar-menu-sub.js +5 -5
  51. package/dist/cjs/chunks/sidebar-menu.js +5 -5
  52. package/dist/cjs/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +9 -9
  53. package/dist/cjs/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +4 -4
  54. package/dist/cjs/chunks/sidebar.js +21 -21
  55. package/dist/cjs/chunks/slider.js +11 -11
  56. package/dist/cjs/chunks/sonner.js +214 -146
  57. package/dist/cjs/chunks/switch.js +7 -7
  58. package/dist/cjs/chunks/tinycolor.js +2 -2
  59. package/dist/cjs/chunks/tooltip-provider.js +5 -5
  60. package/dist/cjs/chunks/tooltip-root.js +7 -7
  61. package/dist/cjs/chunks/tooltip-trigger.js +6 -6
  62. package/dist/cjs/chunks/tooltip.js +12 -12
  63. package/dist/cjs/color-area.js +16 -16
  64. package/dist/cjs/color-picker.js +102 -102
  65. package/dist/cjs/color-swatch.js +11 -11
  66. package/dist/cjs/combobox-empty.js +7 -7
  67. package/dist/cjs/combobox-group.js +11 -11
  68. package/dist/cjs/combobox-input.js +12 -12
  69. package/dist/cjs/combobox-item.js +24 -24
  70. package/dist/cjs/combobox-list.js +12 -12
  71. package/dist/cjs/combobox-root.js +7 -6
  72. package/dist/cjs/combobox-separator.js +7 -7
  73. package/dist/cjs/combobox-trigger.js +8 -8
  74. package/dist/cjs/combobox.js +54 -53
  75. package/dist/cjs/command-group.js +10 -10
  76. package/dist/cjs/command-input.js +8 -8
  77. package/dist/cjs/command-item.js +7 -7
  78. package/dist/cjs/command-list.js +8 -8
  79. package/dist/cjs/command-root.js +8 -7
  80. package/dist/cjs/command-separator.js +7 -7
  81. package/dist/cjs/compact-button.js +7 -7
  82. package/dist/cjs/config.js +2 -2
  83. package/dist/cjs/digit-input-group.js +7 -7
  84. package/dist/cjs/digit-input-slot.js +5 -5
  85. package/dist/cjs/digit-input.js +7 -7
  86. package/dist/cjs/dropdown-menu-content.js +9 -9
  87. package/dist/cjs/dropdown-menu-group.js +5 -5
  88. package/dist/cjs/dropdown-menu-item.js +14 -14
  89. package/dist/cjs/dropdown-menu-label.js +7 -7
  90. package/dist/cjs/dropdown-menu-separator.js +4 -4
  91. package/dist/cjs/dropdown-menu-sub-content.js +9 -9
  92. package/dist/cjs/dropdown-menu-sub-trigger.js +12 -12
  93. package/dist/cjs/dropdown-menu-trigger.js +6 -6
  94. package/dist/cjs/dropdown-menu.js +7 -7
  95. package/dist/cjs/extra-settings.js +21 -21
  96. package/dist/cjs/fancy-button.js +6 -6
  97. package/dist/cjs/file-upload-area.js +22 -22
  98. package/dist/cjs/hint-text.js +8 -8
  99. package/dist/cjs/hue-slider.js +15 -15
  100. package/dist/cjs/index.js +2 -2
  101. package/dist/cjs/label.js +13 -13
  102. package/dist/cjs/link-bubble.js +40 -40
  103. package/dist/cjs/link-button.js +6 -6
  104. package/dist/cjs/modal-body.js +5 -5
  105. package/dist/cjs/modal-content.js +12 -12
  106. package/dist/cjs/modal-footer.js +5 -5
  107. package/dist/cjs/modal-header.js +22 -22
  108. package/dist/cjs/pagination-content.js +6 -6
  109. package/dist/cjs/pagination-ellipsis.js +8 -8
  110. package/dist/cjs/pagination.js +14 -14
  111. package/dist/cjs/popover-content.js +30 -30
  112. package/dist/cjs/popover-trigger.js +5 -5
  113. package/dist/cjs/progress-bar.js +19 -19
  114. package/dist/cjs/progress-circle.js +20 -20
  115. package/dist/cjs/radio-group-card.js +33 -33
  116. package/dist/cjs/radio-group-label.js +31 -31
  117. package/dist/cjs/rich-editor.js +76 -76
  118. package/dist/cjs/scroll-bar.js +7 -7
  119. package/dist/cjs/segmented-control-item.js +6 -8
  120. package/dist/cjs/segmented-control.js +8 -8
  121. package/dist/cjs/select-content.js +11 -11
  122. package/dist/cjs/select-icon.js +5 -5
  123. package/dist/cjs/select-item.js +11 -11
  124. package/dist/cjs/select-label.js +6 -6
  125. package/dist/cjs/select-separator.js +4 -4
  126. package/dist/cjs/select-trigger.js +9 -9
  127. package/dist/cjs/select-value.js +6 -6
  128. package/dist/cjs/sheet-close.js +6 -6
  129. package/dist/cjs/sheet-content.js +14 -14
  130. package/dist/cjs/sheet-description.js +7 -7
  131. package/dist/cjs/sheet-footer.js +6 -6
  132. package/dist/cjs/sheet-header.js +5 -5
  133. package/dist/cjs/sheet-title.js +7 -7
  134. package/dist/cjs/sidebar-group-content.js +5 -5
  135. package/dist/cjs/sidebar-trigger.js +7 -7
  136. package/dist/cjs/social-button.js +8 -8
  137. package/dist/cjs/sonner-alert.js +8 -8
  138. package/dist/cjs/status-badge.js +8 -8
  139. package/dist/cjs/tab-menu-content.js +7 -7
  140. package/dist/cjs/tab-menu-item.js +11 -11
  141. package/dist/cjs/tab-menu-list.js +6 -6
  142. package/dist/cjs/tab-menu.js +6 -6
  143. package/dist/cjs/table-body.js +5 -5
  144. package/dist/cjs/table-caption.js +5 -5
  145. package/dist/cjs/table-cell.js +5 -5
  146. package/dist/cjs/table-empty.js +9 -9
  147. package/dist/cjs/table-footer.js +5 -5
  148. package/dist/cjs/table-head.js +5 -5
  149. package/dist/cjs/table-header.js +5 -5
  150. package/dist/cjs/table-row.js +8 -8
  151. package/dist/cjs/table.js +6 -6
  152. package/dist/cjs/tag.js +10 -10
  153. package/dist/cjs/text-input-affix.js +5 -5
  154. package/dist/cjs/text-input-button.js +6 -6
  155. package/dist/cjs/text-input.js +31 -31
  156. package/dist/cjs/textarea.js +9 -9
  157. package/dist/cjs/tooltip-content.js +20 -20
  158. package/dist/cjs/use-color-model.js +2 -2
  159. package/dist/cjs/use-delegated-props.js +2 -2
  160. package/dist/cjs/use-sidebar.js +1 -1
  161. package/dist/cjs/use-user-select.js +4 -4
  162. package/dist/components/color-picker/alpha-slider.d.ts +1 -1
  163. package/dist/components/color-picker/color-area.d.ts +1 -1
  164. package/dist/components/color-picker/hue-slider.d.ts +1 -1
  165. package/dist/components/file-upload/file-upload-area.d.ts +4 -2
  166. package/dist/components/rich-editor/link-bubble.d.ts +3 -1
  167. package/dist/es/alert.js +1 -1
  168. package/dist/es/badge.js +6 -3
  169. package/dist/es/button.js +2 -2
  170. package/dist/es/checkbox-card.js +3 -3
  171. package/dist/es/checkbox-label.js +3 -3
  172. package/dist/es/chunks/alpha-slider.js +1 -1
  173. package/dist/es/chunks/checkbox.js +5 -5
  174. package/dist/es/chunks/collapsible-content.js +3 -3
  175. package/dist/es/chunks/collapsible-trigger.js +3 -3
  176. package/dist/es/chunks/collapsible.js +4 -4
  177. package/dist/es/chunks/combobox-anchor.js +4 -4
  178. package/dist/es/chunks/content-divider.vue_vue_type_style_index_0_lang.js +3 -3
  179. package/dist/es/chunks/counter-input.js +7 -7
  180. package/dist/es/chunks/dropdown-menu-sub.js +4 -4
  181. package/dist/es/chunks/index.js +1156 -1153
  182. package/dist/es/chunks/index2.js +3 -3
  183. package/dist/es/chunks/index3.js +2 -2
  184. package/dist/es/chunks/index4.js +119 -90
  185. package/dist/es/chunks/index5.js +4733 -4028
  186. package/dist/es/chunks/modal-close.js +3 -3
  187. package/dist/es/chunks/modal-trigger.js +3 -3
  188. package/dist/es/chunks/modal.js +4 -4
  189. package/dist/es/chunks/pagination-first.js +4 -4
  190. package/dist/es/chunks/pagination-item.js +3 -3
  191. package/dist/es/chunks/pagination-last.js +4 -4
  192. package/dist/es/chunks/pagination-next.js +4 -4
  193. package/dist/es/chunks/pagination-previous.js +4 -4
  194. package/dist/es/chunks/popover.js +4 -4
  195. package/dist/es/chunks/radio-group-item.js +5 -5
  196. package/dist/es/chunks/radio-group.js +4 -4
  197. package/dist/es/chunks/rich-editor.vue_vue_type_style_index_0_scoped_dbc85b1a_lang.js +743 -46
  198. package/dist/es/chunks/scroll-area.js +5 -5
  199. package/dist/es/chunks/select-group.js +3 -3
  200. package/dist/es/chunks/select.js +4 -4
  201. package/dist/es/chunks/sheet-trigger.js +3 -3
  202. package/dist/es/chunks/sheet.js +4 -4
  203. package/dist/es/chunks/sidebar-content.js +1 -1
  204. package/dist/es/chunks/sidebar-element.js +2 -2
  205. package/dist/es/chunks/sidebar-footer.js +1 -1
  206. package/dist/es/chunks/sidebar-group-label.js +2 -2
  207. package/dist/es/chunks/sidebar-group.js +1 -1
  208. package/dist/es/chunks/sidebar-header.js +1 -1
  209. package/dist/es/chunks/sidebar-menu-action.js +2 -2
  210. package/dist/es/chunks/sidebar-menu-badge.js +1 -1
  211. package/dist/es/chunks/sidebar-menu-button.js +2 -2
  212. package/dist/es/chunks/sidebar-menu-item.js +1 -1
  213. package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
  214. package/dist/es/chunks/sidebar-menu-sub-item.js +1 -1
  215. package/dist/es/chunks/sidebar-menu-sub.js +1 -1
  216. package/dist/es/chunks/sidebar-menu.js +1 -1
  217. package/dist/es/chunks/sidebar-provider.vue_vue_type_style_index_0_lang.js +3 -3
  218. package/dist/es/chunks/sidebar-separator.vue_vue_type_style_index_0_lang.js +1 -1
  219. package/dist/es/chunks/sidebar.js +1 -1
  220. package/dist/es/chunks/slider.js +7 -7
  221. package/dist/es/chunks/sonner.js +97 -29
  222. package/dist/es/chunks/switch.js +5 -5
  223. package/dist/es/chunks/tinycolor.js +2 -2
  224. package/dist/es/chunks/tooltip-provider.js +3 -3
  225. package/dist/es/chunks/tooltip-root.js +4 -4
  226. package/dist/es/chunks/tooltip-trigger.js +4 -4
  227. package/dist/es/chunks/tooltip.js +3 -3
  228. package/dist/es/color-area.js +2 -2
  229. package/dist/es/color-picker.js +5 -5
  230. package/dist/es/color-swatch.js +1 -1
  231. package/dist/es/combobox-empty.js +3 -3
  232. package/dist/es/combobox-group.js +4 -4
  233. package/dist/es/combobox-input.js +3 -3
  234. package/dist/es/combobox-item.js +4 -4
  235. package/dist/es/combobox-list.js +6 -6
  236. package/dist/es/combobox-root.js +5 -4
  237. package/dist/es/combobox-separator.js +3 -3
  238. package/dist/es/combobox-trigger.js +4 -4
  239. package/dist/es/combobox.js +4 -3
  240. package/dist/es/command-group.js +4 -4
  241. package/dist/es/command-input.js +4 -4
  242. package/dist/es/command-item.js +4 -4
  243. package/dist/es/command-list.js +4 -4
  244. package/dist/es/command-root.js +5 -4
  245. package/dist/es/command-separator.js +3 -3
  246. package/dist/es/compact-button.js +2 -2
  247. package/dist/es/digit-input-group.js +3 -3
  248. package/dist/es/digit-input-slot.js +4 -4
  249. package/dist/es/digit-input.js +4 -4
  250. package/dist/es/dropdown-menu-content.js +5 -5
  251. package/dist/es/dropdown-menu-group.js +3 -3
  252. package/dist/es/dropdown-menu-item.js +4 -4
  253. package/dist/es/dropdown-menu-label.js +4 -4
  254. package/dist/es/dropdown-menu-separator.js +3 -3
  255. package/dist/es/dropdown-menu-sub-content.js +5 -5
  256. package/dist/es/dropdown-menu-sub-trigger.js +4 -4
  257. package/dist/es/dropdown-menu-trigger.js +4 -4
  258. package/dist/es/dropdown-menu.js +4 -4
  259. package/dist/es/extra-settings.js +1 -1
  260. package/dist/es/fancy-button.js +2 -2
  261. package/dist/es/file-upload-area.js +1 -1
  262. package/dist/es/hint-text.js +1 -1
  263. package/dist/es/hue-slider.js +3 -3
  264. package/dist/es/index.js +3 -3
  265. package/dist/es/label.js +3 -3
  266. package/dist/es/link-bubble.js +1 -1
  267. package/dist/es/link-button.js +2 -2
  268. package/dist/es/modal-body.js +1 -1
  269. package/dist/es/modal-content.js +6 -6
  270. package/dist/es/modal-footer.js +1 -1
  271. package/dist/es/modal-header.js +5 -5
  272. package/dist/es/pagination-content.js +3 -3
  273. package/dist/es/pagination-ellipsis.js +3 -3
  274. package/dist/es/pagination.js +4 -4
  275. package/dist/es/popover-content.js +7 -7
  276. package/dist/es/popover-trigger.js +3 -3
  277. package/dist/es/progress-bar.js +4 -4
  278. package/dist/es/progress-circle.js +4 -4
  279. package/dist/es/radio-group-card.js +3 -3
  280. package/dist/es/radio-group-label.js +3 -3
  281. package/dist/es/rich-editor.js +4 -4
  282. package/dist/es/scroll-bar.js +4 -4
  283. package/dist/es/segmented-control-item.js +3 -5
  284. package/dist/es/segmented-control.js +4 -4
  285. package/dist/es/select-content.js +6 -6
  286. package/dist/es/select-icon.js +1 -1
  287. package/dist/es/select-item.js +5 -5
  288. package/dist/es/select-label.js +3 -3
  289. package/dist/es/select-separator.js +3 -3
  290. package/dist/es/select-trigger.js +4 -4
  291. package/dist/es/select-value.js +3 -3
  292. package/dist/es/sheet-close.js +3 -3
  293. package/dist/es/sheet-content.js +7 -7
  294. package/dist/es/sheet-description.js +3 -3
  295. package/dist/es/sheet-footer.js +1 -1
  296. package/dist/es/sheet-header.js +1 -1
  297. package/dist/es/sheet-title.js +3 -3
  298. package/dist/es/sidebar-group-content.js +1 -1
  299. package/dist/es/sidebar-trigger.js +1 -1
  300. package/dist/es/social-button.js +2 -2
  301. package/dist/es/sonner-alert.js +1 -1
  302. package/dist/es/status-badge.js +1 -1
  303. package/dist/es/tab-menu-content.js +3 -3
  304. package/dist/es/tab-menu-item.js +4 -4
  305. package/dist/es/tab-menu-list.js +3 -3
  306. package/dist/es/tab-menu.js +4 -4
  307. package/dist/es/table-body.js +1 -1
  308. package/dist/es/table-caption.js +1 -1
  309. package/dist/es/table-cell.js +1 -1
  310. package/dist/es/table-empty.js +1 -1
  311. package/dist/es/table-footer.js +1 -1
  312. package/dist/es/table-head.js +1 -1
  313. package/dist/es/table-header.js +1 -1
  314. package/dist/es/table-row.js +1 -1
  315. package/dist/es/table.js +1 -1
  316. package/dist/es/tag.js +2 -2
  317. package/dist/es/text-input-affix.js +1 -1
  318. package/dist/es/text-input-button.js +1 -1
  319. package/dist/es/text-input.js +2 -2
  320. package/dist/es/textarea.js +1 -1
  321. package/dist/es/tooltip-content.js +6 -6
  322. package/dist/es/use-sidebar.js +2 -2
  323. package/package.json +3 -3
  324. package/src/components/badge/badge.vue +5 -1
  325. package/src/components/slider/slider.vue +3 -3
@@ -2,7 +2,7 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- const Mo = require("vue");
5
+ const No = require("vue");
6
6
  let toastsCounter = 1;
7
7
  var Observer = class {
8
8
  constructor() {
@@ -130,7 +130,7 @@ var Observer = class {
130
130
  let result;
131
131
  const originalPromise = p.then(async (response) => {
132
132
  result = ["resolve", response];
133
- const isVueComponent = Mo.isVNode(response);
133
+ const isVueComponent = No.isVNode(response);
134
134
  if (isVueComponent) {
135
135
  shouldDismiss = false;
136
136
  this.create({
@@ -142,7 +142,7 @@ var Observer = class {
142
142
  shouldDismiss = false;
143
143
  const promiseData = typeof data.error === "function" ? await data.error(`HTTP error! status: ${response.status}`) : data.error;
144
144
  const description = typeof data.description === "function" ? await data.description(`HTTP error! status: ${response.status}`) : data.description;
145
- const isExtendedResult = typeof promiseData === "object" && !Mo.isVNode(promiseData);
145
+ const isExtendedResult = typeof promiseData === "object" && !No.isVNode(promiseData);
146
146
  const toastSettings = isExtendedResult ? promiseData : {
147
147
  message: promiseData || "",
148
148
  id: id || ""
@@ -157,7 +157,7 @@ var Observer = class {
157
157
  shouldDismiss = false;
158
158
  const promiseData = typeof data.error === "function" ? await data.error(response) : data.error;
159
159
  const description = typeof data.description === "function" ? await data.description(response) : data.description;
160
- const isExtendedResult = typeof promiseData === "object" && !Mo.isVNode(promiseData);
160
+ const isExtendedResult = typeof promiseData === "object" && !No.isVNode(promiseData);
161
161
  const toastSettings = isExtendedResult ? promiseData : {
162
162
  message: promiseData || "",
163
163
  id: id || ""
@@ -172,7 +172,7 @@ var Observer = class {
172
172
  shouldDismiss = false;
173
173
  const promiseData = typeof data.success === "function" ? await data.success(response) : data.success;
174
174
  const description = typeof data.description === "function" ? await data.description(response) : data.description;
175
- const isExtendedResult = typeof promiseData === "object" && !Mo.isVNode(promiseData);
175
+ const isExtendedResult = typeof promiseData === "object" && !No.isVNode(promiseData);
176
176
  const toastSettings = isExtendedResult ? promiseData : {
177
177
  message: promiseData || "",
178
178
  id: id || ""
@@ -190,7 +190,7 @@ var Observer = class {
190
190
  shouldDismiss = false;
191
191
  const promiseData = typeof data.error === "function" ? await data.error(error) : data.error;
192
192
  const description = typeof data.description === "function" ? await data.description(error) : data.description;
193
- const isExtendedResult = typeof promiseData === "object" && !Mo.isVNode(promiseData);
193
+ const isExtendedResult = typeof promiseData === "object" && !No.isVNode(promiseData);
194
194
  const toastSettings = isExtendedResult ? promiseData : {
195
195
  message: promiseData || "",
196
196
  id: id || ""
@@ -216,8 +216,33 @@ var Observer = class {
216
216
  });
217
217
  __publicField(this, "custom", (component, data) => {
218
218
  const id = (data == null ? void 0 : data.id) || toastsCounter++;
219
- this.publish({
219
+ const alreadyExists = this.toasts.find((toast$1) => {
220
+ return toast$1.id === id;
221
+ });
222
+ const dismissible = (data == null ? void 0 : data.dismissible) === void 0 ? true : data.dismissible;
223
+ if (this.dismissedToasts.has(id)) this.dismissedToasts.delete(id);
224
+ if (alreadyExists) this.toasts = this.toasts.map((toast$1) => {
225
+ if (toast$1.id === id) {
226
+ this.publish({
227
+ ...toast$1,
228
+ component,
229
+ dismissible,
230
+ id,
231
+ ...data
232
+ });
233
+ return {
234
+ ...toast$1,
235
+ component,
236
+ dismissible,
237
+ id,
238
+ ...data
239
+ };
240
+ }
241
+ return toast$1;
242
+ });
243
+ else this.addToast({
220
244
  component,
245
+ dismissible,
221
246
  id,
222
247
  ...data
223
248
  });
@@ -274,8 +299,8 @@ const GAP = 14;
274
299
  const SWIPE_THRESHOLD = 45;
275
300
  const TIME_BEFORE_UNMOUNT = 200;
276
301
  function useIsDocumentHidden() {
277
- const isDocumentHidden = Mo.ref(false);
278
- Mo.watchEffect(() => {
302
+ const isDocumentHidden = No.ref(false);
303
+ No.watchEffect(() => {
279
304
  const callback = () => {
280
305
  isDocumentHidden.value = document.hidden;
281
306
  };
@@ -342,10 +367,15 @@ const _hoisted_1$7 = [
342
367
  "data-invert",
343
368
  "data-swipe-out",
344
369
  "data-swipe-direction",
345
- "data-expanded"
370
+ "data-expanded",
371
+ "data-testid"
346
372
  ];
347
- const _hoisted_2$2 = ["aria-label", "data-disabled"];
348
- var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
373
+ const _hoisted_2$2 = [
374
+ "aria-label",
375
+ "data-disabled",
376
+ "data-close-button-position"
377
+ ];
378
+ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defineComponent({
349
379
  __name: "Toast",
350
380
  props: {
351
381
  toast: {},
@@ -357,6 +387,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
357
387
  heights: {},
358
388
  gap: {},
359
389
  position: {},
390
+ closeButtonPosition: {},
360
391
  visibleToasts: {},
361
392
  expandByDefault: { type: Boolean },
362
393
  closeButton: { type: Boolean },
@@ -382,31 +413,31 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
382
413
  setup(__props, { emit: __emit }) {
383
414
  const props = __props;
384
415
  const emit = __emit;
385
- const swipeDirection = Mo.ref(null);
386
- const swipeOutDirection = Mo.ref(null);
387
- const mounted = Mo.ref(false);
388
- const removed = Mo.ref(false);
389
- const swiping = Mo.ref(false);
390
- const swipeOut = Mo.ref(false);
391
- const swiped = Mo.ref(false);
392
- const offsetBeforeRemove = Mo.ref(0);
393
- const initialHeight = Mo.ref(0);
394
- const remainingTime = Mo.ref(props.toast.duration || props.duration || TOAST_LIFETIME);
395
- const dragStartTime = Mo.ref(null);
396
- const toastRef = Mo.ref(null);
397
- const isFront = Mo.computed(() => props.index === 0);
398
- const isVisible = Mo.computed(() => props.index + 1 <= props.visibleToasts);
399
- const toastType = Mo.computed(() => props.toast.type);
400
- const dismissible = Mo.computed(() => props.toast.dismissible !== false);
401
- const toastClass = Mo.computed(() => props.toast.class || "");
402
- const toastDescriptionClass = Mo.computed(() => props.descriptionClass || "");
403
- const heightIndex = Mo.computed(() => {
416
+ const swipeDirection = No.ref(null);
417
+ const swipeOutDirection = No.ref(null);
418
+ const mounted = No.ref(false);
419
+ const removed = No.ref(false);
420
+ const swiping = No.ref(false);
421
+ const swipeOut = No.ref(false);
422
+ const swiped = No.ref(false);
423
+ const offsetBeforeRemove = No.ref(0);
424
+ const initialHeight = No.ref(0);
425
+ const remainingTime = No.ref(props.toast.duration || props.duration || TOAST_LIFETIME);
426
+ const dragStartTime = No.ref(null);
427
+ const toastRef = No.ref(null);
428
+ const isFront = No.computed(() => props.index === 0);
429
+ const isVisible = No.computed(() => props.index + 1 <= props.visibleToasts);
430
+ const toastType = No.computed(() => props.toast.type);
431
+ const dismissible = No.computed(() => props.toast.dismissible !== false);
432
+ const toastClass = No.computed(() => props.toast.class || "");
433
+ const toastDescriptionClass = No.computed(() => props.descriptionClass || "");
434
+ const heightIndex = No.computed(() => {
404
435
  const currentPosition = props.toast.position || props.position;
405
436
  const samePositionHeights = props.heights.filter((h) => h.position === currentPosition);
406
437
  const index = samePositionHeights.findIndex((height) => height.toastId === props.toast.id);
407
438
  return index >= 0 ? index : 0;
408
439
  });
409
- const toastsHeightBefore = Mo.computed(() => {
440
+ const toastsHeightBefore = No.computed(() => {
410
441
  const currentPosition = props.toast.position || props.position;
411
442
  const samePositionHeights = props.heights.filter((h) => h.position === currentPosition);
412
443
  return samePositionHeights.reduce((prev, curr, reducerIndex) => {
@@ -414,26 +445,26 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
414
445
  return prev + curr.height;
415
446
  }, 0);
416
447
  });
417
- const offset = Mo.computed(() => heightIndex.value * props.gap + toastsHeightBefore.value || 0);
418
- const closeButton = Mo.computed(() => props.toast.closeButton ?? props.closeButton);
419
- const duration = Mo.computed(() => props.toast.duration || props.duration || TOAST_LIFETIME);
420
- const closeTimerStartTimeRef = Mo.ref(0);
421
- const lastCloseTimerStartTimeRef = Mo.ref(0);
422
- const pointerStartRef = Mo.ref(null);
423
- const coords = Mo.computed(() => props.position.split("-"));
424
- const y = Mo.computed(() => coords.value[0]);
425
- const x = Mo.computed(() => coords.value[1]);
426
- const isStringOfTitle = Mo.computed(() => typeof props.toast.title !== "string");
427
- const isStringOfDescription = Mo.computed(() => typeof props.toast.description !== "string");
448
+ const offset = No.computed(() => heightIndex.value * props.gap + toastsHeightBefore.value || 0);
449
+ const closeButton = No.computed(() => props.toast.closeButton ?? props.closeButton);
450
+ const duration = No.computed(() => props.toast.duration || props.duration || TOAST_LIFETIME);
451
+ const closeTimerStartTimeRef = No.ref(0);
452
+ const lastCloseTimerStartTimeRef = No.ref(0);
453
+ const pointerStartRef = No.ref(null);
454
+ const coords = No.computed(() => props.position.split("-"));
455
+ const y = No.computed(() => coords.value[0]);
456
+ const x = No.computed(() => coords.value[1]);
457
+ const isStringOfTitle = No.computed(() => typeof props.toast.title !== "string");
458
+ const isStringOfDescription = No.computed(() => typeof props.toast.description !== "string");
428
459
  const { isDocumentHidden } = useIsDocumentHidden();
429
- const disabled = Mo.computed(() => toastType.value && toastType.value === "loading");
430
- Mo.onMounted(() => {
460
+ const disabled = No.computed(() => toastType.value && toastType.value === "loading");
461
+ No.onMounted(() => {
431
462
  mounted.value = true;
432
463
  remainingTime.value = duration.value;
433
464
  });
434
- Mo.watchEffect(async () => {
465
+ No.watchEffect(async () => {
435
466
  if (!mounted.value || !toastRef.value) return;
436
- await Mo.nextTick();
467
+ await No.nextTick();
437
468
  const toastNode = toastRef.value;
438
469
  const originalHeight = toastNode.style.height;
439
470
  toastNode.style.height = "auto";
@@ -460,6 +491,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
460
491
  (_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
461
492
  }
462
493
  function onPointerDown(event) {
494
+ if (event.button === 2) return;
463
495
  if (disabled.value || !dismissible.value) return;
464
496
  dragStartTime.value = /* @__PURE__ */ new Date();
465
497
  offsetBeforeRemove.value = offset.value;
@@ -530,7 +562,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
530
562
  (_c = toastRef.value) == null ? void 0 : _c.style.setProperty("--swipe-amount-x", `${swipeAmount.x}px`);
531
563
  (_d = toastRef.value) == null ? void 0 : _d.style.setProperty("--swipe-amount-y", `${swipeAmount.y}px`);
532
564
  }
533
- Mo.onMounted(() => {
565
+ No.onMounted(() => {
534
566
  mounted.value = true;
535
567
  if (!toastRef.value) return;
536
568
  const height = toastRef.value.getBoundingClientRect().height;
@@ -542,10 +574,10 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
542
574
  }, ...props.heights];
543
575
  emit("update:heights", newHeights);
544
576
  });
545
- Mo.onBeforeUnmount(() => {
577
+ No.onBeforeUnmount(() => {
546
578
  if (toastRef.value) emit("removeToast", props.toast);
547
579
  });
548
- Mo.watchEffect((onInvalidate) => {
580
+ No.watchEffect((onInvalidate) => {
549
581
  if (props.toast.promise && toastType.value === "loading" || props.toast.duration === Infinity || props.toast.type === "loading") return;
550
582
  let timeoutId;
551
583
  const pauseTimer = () => {
@@ -570,8 +602,12 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
570
602
  clearTimeout(timeoutId);
571
603
  });
572
604
  });
573
- Mo.watch(() => props.toast.delete, (value) => {
574
- if (value !== void 0 && value) deleteToast();
605
+ No.watch(() => props.toast.delete, (value) => {
606
+ var _a, _b;
607
+ if (value !== void 0 && value) {
608
+ deleteToast();
609
+ (_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
610
+ }
575
611
  }, { deep: true });
576
612
  function handleDragEnd() {
577
613
  swiping.value = false;
@@ -580,11 +616,11 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
580
616
  }
581
617
  return (_ctx, _cache) => {
582
618
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
583
- return Mo.openBlock(), Mo.createElementBlock("li", {
619
+ return No.openBlock(), No.createElementBlock("li", {
584
620
  tabindex: "0",
585
621
  ref_key: "toastRef",
586
622
  ref: toastRef,
587
- class: Mo.normalizeClass(Mo.unref(cn)(props.class, toastClass.value, (_a = _ctx.classes) == null ? void 0 : _a.toast, (_b = _ctx.toast.classes) == null ? void 0 : _b.toast, (_c = _ctx.classes) == null ? void 0 : _c[toastType.value], (_e = (_d = _ctx.toast) == null ? void 0 : _d.classes) == null ? void 0 : _e[toastType.value])),
623
+ class: No.normalizeClass(No.unref(cn)(props.class, toastClass.value, (_a = _ctx.classes) == null ? void 0 : _a.toast, (_b = _ctx.toast.classes) == null ? void 0 : _b.toast, (_c = _ctx.classes) == null ? void 0 : _c[toastType.value], (_e = (_d = _ctx.toast) == null ? void 0 : _d.classes) == null ? void 0 : _e[toastType.value])),
588
624
  "data-sonner-toast": "",
589
625
  "data-rich-colors": _ctx.toast.richColors ?? _ctx.defaultRichColors,
590
626
  "data-styled": !Boolean(_ctx.toast.component || ((_f = _ctx.toast) == null ? void 0 : _f.unstyled) || _ctx.unstyled),
@@ -604,7 +640,8 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
604
640
  "data-swipe-out": swipeOut.value,
605
641
  "data-swipe-direction": swipeOutDirection.value,
606
642
  "data-expanded": Boolean(_ctx.expanded || _ctx.expandByDefault && mounted.value),
607
- style: Mo.normalizeStyle({
643
+ "data-testid": _ctx.toast.testId,
644
+ style: No.normalizeStyle({
608
645
  "--index": _ctx.index,
609
646
  "--toasts-before": _ctx.index,
610
647
  "--z-index": _ctx.toasts.length - _ctx.index,
@@ -617,58 +654,62 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defin
617
654
  onPointerdown: onPointerDown,
618
655
  onPointerup: onPointerUp,
619
656
  onPointermove: onPointerMove
620
- }, [closeButton.value && !_ctx.toast.component && toastType.value !== "loading" ? (Mo.openBlock(), Mo.createElementBlock("button", {
657
+ }, [closeButton.value && !_ctx.toast.component && toastType.value !== "loading" ? (No.openBlock(), No.createElementBlock("button", {
621
658
  key: 0,
622
659
  "aria-label": _ctx.closeButtonAriaLabel || "Close toast",
623
660
  "data-disabled": disabled.value,
624
661
  "data-close-button": "true",
625
- class: Mo.normalizeClass(Mo.unref(cn)((_g = _ctx.classes) == null ? void 0 : _g.closeButton, (_i = (_h = _ctx.toast) == null ? void 0 : _h.classes) == null ? void 0 : _i.closeButton)),
662
+ "data-close-button-position": _ctx.closeButtonPosition,
663
+ class: No.normalizeClass(No.unref(cn)((_g = _ctx.classes) == null ? void 0 : _g.closeButton, (_i = (_h = _ctx.toast) == null ? void 0 : _h.classes) == null ? void 0 : _i.closeButton)),
626
664
  onClick: handleCloseToast
627
- }, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : Mo.renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : Mo.createCommentVNode("v-if", true), _ctx.toast.component ? (Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent(_ctx.toast.component), Mo.mergeProps({ key: 1 }, _ctx.toast.componentProps, { onCloseToast: handleCloseToast }), null, 16)) : (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 2 }, [
628
- toastType.value !== "default" || _ctx.toast.icon || _ctx.toast.promise ? (Mo.openBlock(), Mo.createElementBlock("div", {
665
+ }, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (No.openBlock(), No.createBlock(No.resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : No.renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : No.createCommentVNode("v-if", true), _ctx.toast.component ? (No.openBlock(), No.createBlock(No.resolveDynamicComponent(_ctx.toast.component), No.mergeProps({ key: 1 }, _ctx.toast.componentProps, {
666
+ onCloseToast: handleCloseToast,
667
+ isPaused: _ctx.$props.expanded || _ctx.$props.interacting || No.unref(isDocumentHidden)
668
+ }), null, 16, ["isPaused"])) : (No.openBlock(), No.createElementBlock(No.Fragment, { key: 2 }, [
669
+ toastType.value !== "default" || _ctx.toast.icon || _ctx.toast.promise ? (No.openBlock(), No.createElementBlock("div", {
629
670
  key: 0,
630
671
  "data-icon": "",
631
- class: Mo.normalizeClass(Mo.unref(cn)((_l = _ctx.classes) == null ? void 0 : _l.icon, (_n = (_m = _ctx.toast) == null ? void 0 : _m.classes) == null ? void 0 : _n.icon))
632
- }, [_ctx.toast.icon ? (Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent(_ctx.toast.icon), { key: 0 })) : (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 1 }, [toastType.value === "loading" ? Mo.renderSlot(_ctx.$slots, "loading-icon", { key: 0 }) : toastType.value === "success" ? Mo.renderSlot(_ctx.$slots, "success-icon", { key: 1 }) : toastType.value === "error" ? Mo.renderSlot(_ctx.$slots, "error-icon", { key: 2 }) : toastType.value === "warning" ? Mo.renderSlot(_ctx.$slots, "warning-icon", { key: 3 }) : toastType.value === "info" ? Mo.renderSlot(_ctx.$slots, "info-icon", { key: 4 }) : Mo.createCommentVNode("v-if", true)], 64))], 2)) : Mo.createCommentVNode("v-if", true),
633
- Mo.createElementVNode("div", {
672
+ class: No.normalizeClass(No.unref(cn)((_l = _ctx.classes) == null ? void 0 : _l.icon, (_n = (_m = _ctx.toast) == null ? void 0 : _m.classes) == null ? void 0 : _n.icon))
673
+ }, [_ctx.toast.icon ? (No.openBlock(), No.createBlock(No.resolveDynamicComponent(_ctx.toast.icon), { key: 0 })) : (No.openBlock(), No.createElementBlock(No.Fragment, { key: 1 }, [toastType.value === "loading" ? No.renderSlot(_ctx.$slots, "loading-icon", { key: 0 }) : toastType.value === "success" ? No.renderSlot(_ctx.$slots, "success-icon", { key: 1 }) : toastType.value === "error" ? No.renderSlot(_ctx.$slots, "error-icon", { key: 2 }) : toastType.value === "warning" ? No.renderSlot(_ctx.$slots, "warning-icon", { key: 3 }) : toastType.value === "info" ? No.renderSlot(_ctx.$slots, "info-icon", { key: 4 }) : No.createCommentVNode("v-if", true)], 64))], 2)) : No.createCommentVNode("v-if", true),
674
+ No.createElementVNode("div", {
634
675
  "data-content": "",
635
- class: Mo.normalizeClass(Mo.unref(cn)((_o = _ctx.classes) == null ? void 0 : _o.content, (_q = (_p = _ctx.toast) == null ? void 0 : _p.classes) == null ? void 0 : _q.content))
636
- }, [Mo.createElementVNode("div", {
676
+ class: No.normalizeClass(No.unref(cn)((_o = _ctx.classes) == null ? void 0 : _o.content, (_q = (_p = _ctx.toast) == null ? void 0 : _p.classes) == null ? void 0 : _q.content))
677
+ }, [No.createElementVNode("div", {
637
678
  "data-title": "",
638
- class: Mo.normalizeClass(Mo.unref(cn)((_r = _ctx.classes) == null ? void 0 : _r.title, (_s = _ctx.toast.classes) == null ? void 0 : _s.title))
639
- }, [isStringOfTitle.value ? (Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent(_ctx.toast.title), Mo.normalizeProps(Mo.mergeProps({ key: 0 }, _ctx.toast.componentProps)), null, 16)) : (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 1 }, [Mo.createTextVNode(Mo.toDisplayString(_ctx.toast.title), 1)], 64))], 2), _ctx.toast.description ? (Mo.openBlock(), Mo.createElementBlock("div", {
679
+ class: No.normalizeClass(No.unref(cn)((_r = _ctx.classes) == null ? void 0 : _r.title, (_s = _ctx.toast.classes) == null ? void 0 : _s.title))
680
+ }, [isStringOfTitle.value ? (No.openBlock(), No.createBlock(No.resolveDynamicComponent(_ctx.toast.title), No.normalizeProps(No.mergeProps({ key: 0 }, _ctx.toast.componentProps)), null, 16)) : (No.openBlock(), No.createElementBlock(No.Fragment, { key: 1 }, [No.createTextVNode(No.toDisplayString(_ctx.toast.title), 1)], 64))], 2), _ctx.toast.description ? (No.openBlock(), No.createElementBlock("div", {
640
681
  key: 0,
641
682
  "data-description": "",
642
- class: Mo.normalizeClass(Mo.unref(cn)(_ctx.descriptionClass, toastDescriptionClass.value, (_t = _ctx.classes) == null ? void 0 : _t.description, (_u = _ctx.toast.classes) == null ? void 0 : _u.description))
643
- }, [isStringOfDescription.value ? (Mo.openBlock(), Mo.createBlock(Mo.resolveDynamicComponent(_ctx.toast.description), Mo.normalizeProps(Mo.mergeProps({ key: 0 }, _ctx.toast.componentProps)), null, 16)) : (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 1 }, [Mo.createTextVNode(Mo.toDisplayString(_ctx.toast.description), 1)], 64))], 2)) : Mo.createCommentVNode("v-if", true)], 2),
644
- _ctx.toast.cancel ? (Mo.openBlock(), Mo.createElementBlock("button", {
683
+ class: No.normalizeClass(No.unref(cn)(_ctx.descriptionClass, toastDescriptionClass.value, (_t = _ctx.classes) == null ? void 0 : _t.description, (_u = _ctx.toast.classes) == null ? void 0 : _u.description))
684
+ }, [isStringOfDescription.value ? (No.openBlock(), No.createBlock(No.resolveDynamicComponent(_ctx.toast.description), No.normalizeProps(No.mergeProps({ key: 0 }, _ctx.toast.componentProps)), null, 16)) : (No.openBlock(), No.createElementBlock(No.Fragment, { key: 1 }, [No.createTextVNode(No.toDisplayString(_ctx.toast.description), 1)], 64))], 2)) : No.createCommentVNode("v-if", true)], 2),
685
+ _ctx.toast.cancel ? (No.openBlock(), No.createElementBlock("button", {
645
686
  key: 1,
646
- style: Mo.normalizeStyle(_ctx.toast.cancelButtonStyle || _ctx.cancelButtonStyle),
647
- class: Mo.normalizeClass(Mo.unref(cn)((_v = _ctx.classes) == null ? void 0 : _v.cancelButton, (_w = _ctx.toast.classes) == null ? void 0 : _w.cancelButton)),
687
+ style: No.normalizeStyle(_ctx.toast.cancelButtonStyle || _ctx.cancelButtonStyle),
688
+ class: No.normalizeClass(No.unref(cn)((_v = _ctx.classes) == null ? void 0 : _v.cancelButton, (_w = _ctx.toast.classes) == null ? void 0 : _w.cancelButton)),
648
689
  "data-button": "",
649
690
  "data-cancel": "",
650
691
  onClick: _cache[0] || (_cache[0] = (event) => {
651
692
  var _a2, _b2;
652
- if (!Mo.unref(isAction)(_ctx.toast.cancel)) return;
693
+ if (!No.unref(isAction)(_ctx.toast.cancel)) return;
653
694
  if (!dismissible.value) return;
654
695
  (_b2 = (_a2 = _ctx.toast.cancel).onClick) == null ? void 0 : _b2.call(_a2, event);
655
696
  deleteToast();
656
697
  })
657
- }, Mo.toDisplayString(Mo.unref(isAction)(_ctx.toast.cancel) ? (_x = _ctx.toast.cancel) == null ? void 0 : _x.label : _ctx.toast.cancel), 7)) : Mo.createCommentVNode("v-if", true),
658
- _ctx.toast.action ? (Mo.openBlock(), Mo.createElementBlock("button", {
698
+ }, No.toDisplayString(No.unref(isAction)(_ctx.toast.cancel) ? (_x = _ctx.toast.cancel) == null ? void 0 : _x.label : _ctx.toast.cancel), 7)) : No.createCommentVNode("v-if", true),
699
+ _ctx.toast.action ? (No.openBlock(), No.createElementBlock("button", {
659
700
  key: 2,
660
- style: Mo.normalizeStyle(_ctx.toast.actionButtonStyle || _ctx.actionButtonStyle),
661
- class: Mo.normalizeClass(Mo.unref(cn)((_y = _ctx.classes) == null ? void 0 : _y.actionButton, (_z = _ctx.toast.classes) == null ? void 0 : _z.actionButton)),
701
+ style: No.normalizeStyle(_ctx.toast.actionButtonStyle || _ctx.actionButtonStyle),
702
+ class: No.normalizeClass(No.unref(cn)((_y = _ctx.classes) == null ? void 0 : _y.actionButton, (_z = _ctx.toast.classes) == null ? void 0 : _z.actionButton)),
662
703
  "data-button": "",
663
704
  "data-action": "",
664
705
  onClick: _cache[1] || (_cache[1] = (event) => {
665
706
  var _a2, _b2;
666
- if (!Mo.unref(isAction)(_ctx.toast.action)) return;
707
+ if (!No.unref(isAction)(_ctx.toast.action)) return;
667
708
  (_b2 = (_a2 = _ctx.toast.action).onClick) == null ? void 0 : _b2.call(_a2, event);
668
709
  if (event.defaultPrevented) return;
669
710
  deleteToast();
670
711
  })
671
- }, Mo.toDisplayString(Mo.unref(isAction)(_ctx.toast.action) ? (_A = _ctx.toast.action) == null ? void 0 : _A.label : _ctx.toast.action), 7)) : Mo.createCommentVNode("v-if", true)
712
+ }, No.toDisplayString(No.unref(isAction)(_ctx.toast.action) ? (_A = _ctx.toast.action) == null ? void 0 : _A.label : _ctx.toast.action), 7)) : No.createCommentVNode("v-if", true)
672
713
  ], 64))], 46, _hoisted_1$7);
673
714
  };
674
715
  }
@@ -692,12 +733,12 @@ const _hoisted_1$6 = {
692
733
  "stroke-linejoin": "round"
693
734
  };
694
735
  function _sfc_render$4(_ctx, _cache) {
695
- return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [Mo.createElementVNode("line", {
736
+ return No.openBlock(), No.createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [No.createElementVNode("line", {
696
737
  x1: "18",
697
738
  y1: "6",
698
739
  x2: "6",
699
740
  y2: "18"
700
- }, null, -1), Mo.createElementVNode("line", {
741
+ }, null, -1), No.createElementVNode("line", {
701
742
  x1: "6",
702
743
  y1: "6",
703
744
  x2: "18",
@@ -707,17 +748,17 @@ function _sfc_render$4(_ctx, _cache) {
707
748
  var CloseIcon_default = /* @__PURE__ */ export_helper_default(_sfc_main$4, [["render", _sfc_render$4]]);
708
749
  const _hoisted_1$5 = ["data-visible"];
709
750
  const _hoisted_2$1 = { class: "sonner-spinner" };
710
- var Loader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
751
+ var Loader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defineComponent({
711
752
  __name: "Loader",
712
753
  props: { visible: { type: Boolean } },
713
754
  setup(__props) {
714
755
  const bars = Array(12).fill(0);
715
756
  return (_ctx, _cache) => {
716
- return Mo.openBlock(), Mo.createElementBlock("div", {
757
+ return No.openBlock(), No.createElementBlock("div", {
717
758
  class: "sonner-loading-wrapper",
718
759
  "data-visible": _ctx.visible
719
- }, [Mo.createElementVNode("div", _hoisted_2$1, [(Mo.openBlock(true), Mo.createElementBlock(Mo.Fragment, null, Mo.renderList(Mo.unref(bars), (bar) => {
720
- return Mo.openBlock(), Mo.createElementBlock("div", {
760
+ }, [No.createElementVNode("div", _hoisted_2$1, [(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(No.unref(bars), (bar) => {
761
+ return No.openBlock(), No.createElementBlock("div", {
721
762
  key: `spinner-bar-${bar}`,
722
763
  class: "sonner-loading-bar"
723
764
  });
@@ -735,7 +776,7 @@ const _hoisted_1$4 = {
735
776
  width: "20"
736
777
  };
737
778
  function _sfc_render$3(_ctx, _cache) {
738
- return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
779
+ return No.openBlock(), No.createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
739
780
  "fill-rule": "evenodd",
740
781
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
741
782
  "clip-rule": "evenodd"
@@ -751,7 +792,7 @@ const _hoisted_1$3 = {
751
792
  width: "20"
752
793
  };
753
794
  function _sfc_render$2(_ctx, _cache) {
754
- return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
795
+ return No.openBlock(), No.createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
755
796
  "fill-rule": "evenodd",
756
797
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
757
798
  "clip-rule": "evenodd"
@@ -767,7 +808,7 @@ const _hoisted_1$2 = {
767
808
  width: "20"
768
809
  };
769
810
  function _sfc_render$1(_ctx, _cache) {
770
- return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
811
+ return No.openBlock(), No.createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
771
812
  "fill-rule": "evenodd",
772
813
  d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
773
814
  "clip-rule": "evenodd"
@@ -783,7 +824,7 @@ const _hoisted_1$1 = {
783
824
  width: "20"
784
825
  };
785
826
  function _sfc_render(_ctx, _cache) {
786
- return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$1, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
827
+ return No.openBlock(), No.createElementBlock("svg", _hoisted_1$1, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
787
828
  "fill-rule": "evenodd",
788
829
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
789
830
  "clip-rule": "evenodd"
@@ -797,8 +838,7 @@ const _hoisted_2 = [
797
838
  "data-theme",
798
839
  "data-rich-colors",
799
840
  "data-y-position",
800
- "data-x-position",
801
- "data-lifted"
841
+ "data-x-position"
802
842
  ];
803
843
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
804
844
  function getDocumentDirection() {
@@ -808,17 +848,19 @@ function getDocumentDirection() {
808
848
  if (dirAttribute === "auto" || !dirAttribute) return window.getComputedStyle(document.documentElement).direction;
809
849
  return dirAttribute;
810
850
  }
811
- var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
851
+ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defineComponent({
812
852
  name: "Toaster",
813
853
  inheritAttrs: false,
814
854
  __name: "Toaster",
815
855
  props: {
856
+ id: {},
816
857
  invert: {
817
858
  type: Boolean,
818
859
  default: false
819
860
  },
820
861
  theme: { default: "light" },
821
862
  position: { default: "bottom-right" },
863
+ closeButtonPosition: { default: "top-left" },
822
864
  hotkey: { default: () => ["altKey", "KeyT"] },
823
865
  richColors: {
824
866
  type: Boolean,
@@ -847,29 +889,38 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
847
889
  },
848
890
  setup(__props) {
849
891
  const props = __props;
850
- const attrs = Mo.useAttrs();
851
- const toasts = Mo.ref([]);
892
+ const attrs = No.useAttrs();
893
+ const toasts = No.ref([]);
894
+ const filteredToastsById = No.computed(() => {
895
+ if (props.id) return toasts.value.filter((toast$1) => toast$1.toasterId === props.id);
896
+ return toasts.value.filter((toast$1) => !toast$1.toasterId);
897
+ });
852
898
  function filteredToasts(pos, index) {
853
- return toasts.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
899
+ return filteredToastsById.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
854
900
  }
855
- const possiblePositions = Mo.computed(() => {
856
- const posList = toasts.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
901
+ const possiblePositions = No.computed(() => {
902
+ const posList = filteredToastsById.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
857
903
  return posList.length > 0 ? Array.from(new Set([props.position].concat(posList))) : [props.position];
858
904
  });
859
- const toastsByPosition = Mo.computed(() => {
905
+ const toastsByPosition = No.computed(() => {
860
906
  const result = {};
861
907
  possiblePositions.value.forEach((pos) => {
862
908
  result[pos] = toasts.value.filter((t) => t.position === pos);
863
909
  });
864
910
  return result;
865
911
  });
866
- const heights = Mo.ref([]);
867
- const expanded = Mo.ref(false);
868
- const interacting = Mo.ref(false);
869
- const actualTheme = Mo.ref(props.theme !== "system" ? props.theme : typeof window !== "undefined" ? window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "light");
870
- const listRef = Mo.ref(null);
871
- const lastFocusedElementRef = Mo.ref(null);
872
- const isFocusWithinRef = Mo.ref(false);
912
+ const heights = No.ref([]);
913
+ const expanded = No.ref({});
914
+ const interacting = No.ref(false);
915
+ No.watchEffect(() => {
916
+ possiblePositions.value.forEach((pos) => {
917
+ if (!(pos in expanded.value)) expanded.value[pos] = false;
918
+ });
919
+ });
920
+ const actualTheme = No.ref(props.theme !== "system" ? props.theme : typeof window !== "undefined" ? window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "light");
921
+ const listRef = No.ref(null);
922
+ const lastFocusedElementRef = No.ref(null);
923
+ const isFocusWithinRef = No.ref(false);
873
924
  const hotkeyLabel = props.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
874
925
  function removeToast(toastToRemove) {
875
926
  var _a;
@@ -904,7 +955,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
904
955
  }
905
956
  interacting.value = true;
906
957
  }
907
- Mo.watchEffect((onInvalidate) => {
958
+ No.watchEffect((onInvalidate) => {
908
959
  const unsubscribe = ToastState.subscribe((toast$1) => {
909
960
  if (toast$1.dismiss) {
910
961
  requestAnimationFrame(() => {
@@ -915,7 +966,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
915
966
  });
916
967
  return;
917
968
  }
918
- Mo.nextTick(() => {
969
+ No.nextTick(() => {
919
970
  const indexOfExistingToast = toasts.value.findIndex((t) => t.id === toast$1.id);
920
971
  if (indexOfExistingToast !== -1) toasts.value = [
921
972
  ...toasts.value.slice(0, indexOfExistingToast),
@@ -930,7 +981,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
930
981
  });
931
982
  onInvalidate(unsubscribe);
932
983
  });
933
- Mo.watchEffect((onInvalidate) => {
984
+ No.watchEffect((onInvalidate) => {
934
985
  if (typeof window === "undefined") return;
935
986
  if (props.theme !== "system") {
936
987
  actualTheme.value = props.theme;
@@ -957,26 +1008,32 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
957
1008
  }
958
1009
  });
959
1010
  });
960
- Mo.watchEffect(() => {
1011
+ No.watchEffect(() => {
961
1012
  if (listRef.value && lastFocusedElementRef.value) {
962
1013
  lastFocusedElementRef.value.focus({ preventScroll: true });
963
1014
  lastFocusedElementRef.value = null;
964
1015
  isFocusWithinRef.value = false;
965
1016
  }
966
1017
  });
967
- Mo.watchEffect(() => {
968
- if (toasts.value.length <= 1) expanded.value = false;
1018
+ No.watchEffect(() => {
1019
+ if (toasts.value.length <= 1) Object.keys(expanded.value).forEach((pos) => {
1020
+ expanded.value[pos] = false;
1021
+ });
969
1022
  });
970
- Mo.watchEffect((onInvalidate) => {
1023
+ No.watchEffect((onInvalidate) => {
971
1024
  function handleKeyDown(event) {
972
1025
  const isHotkeyPressed = props.hotkey.every((key) => event[key] || event.code === key);
973
1026
  const listRefItem = Array.isArray(listRef.value) ? listRef.value[0] : listRef.value;
974
1027
  if (isHotkeyPressed) {
975
- expanded.value = true;
1028
+ possiblePositions.value.forEach((pos) => {
1029
+ expanded.value[pos] = true;
1030
+ });
976
1031
  listRefItem == null ? void 0 : listRefItem.focus();
977
1032
  }
978
1033
  const isItemActive = document.activeElement === listRef.value || (listRefItem == null ? void 0 : listRefItem.contains(document.activeElement));
979
- if (event.code === "Escape" && isItemActive) expanded.value = false;
1034
+ if (event.code === "Escape" && isItemActive) possiblePositions.value.forEach((pos) => {
1035
+ expanded.value[pos] = false;
1036
+ });
980
1037
  }
981
1038
  if (!isClient) return;
982
1039
  document.addEventListener("keydown", handleKeyDown);
@@ -984,14 +1041,22 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
984
1041
  document.removeEventListener("keydown", handleKeyDown);
985
1042
  });
986
1043
  });
987
- function handleMouseEnter() {
988
- expanded.value = true;
1044
+ function handleMouseEnter(event) {
1045
+ const target = event.currentTarget;
1046
+ const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
1047
+ expanded.value[position] = true;
989
1048
  }
990
- function handleMouseLeave() {
991
- if (!interacting.value) expanded.value = false;
1049
+ function handleMouseLeave(event) {
1050
+ if (!interacting.value) {
1051
+ const target = event.currentTarget;
1052
+ const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
1053
+ expanded.value[position] = false;
1054
+ }
992
1055
  }
993
1056
  function handleDragEnd() {
994
- expanded.value = false;
1057
+ Object.keys(expanded.value).forEach((pos) => {
1058
+ expanded.value[pos] = false;
1059
+ });
995
1060
  }
996
1061
  function handlePointerUp() {
997
1062
  interacting.value = false;
@@ -1009,15 +1074,15 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1009
1074
  }
1010
1075
  }
1011
1076
  return (_ctx, _cache) => {
1012
- return Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, null, [Mo.createCommentVNode(" Remove item from normal navigation flow, only available via hotkey "), Mo.createElementVNode("section", {
1013
- "aria-label": `${_ctx.containerAriaLabel} ${Mo.unref(hotkeyLabel)}`,
1077
+ return No.openBlock(), No.createElementBlock(No.Fragment, null, [No.createCommentVNode(" Remove item from normal navigation flow, only available via hotkey "), No.createElementVNode("section", {
1078
+ "aria-label": `${_ctx.containerAriaLabel} ${No.unref(hotkeyLabel)}`,
1014
1079
  tabIndex: -1,
1015
1080
  "aria-live": "polite",
1016
1081
  "aria-relevant": "additions text",
1017
1082
  "aria-atomic": "false"
1018
- }, [(Mo.openBlock(true), Mo.createElementBlock(Mo.Fragment, null, Mo.renderList(possiblePositions.value, (pos, index) => {
1083
+ }, [(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(possiblePositions.value, (pos, index) => {
1019
1084
  var _a;
1020
- return Mo.openBlock(), Mo.createElementBlock("ol", Mo.mergeProps({
1085
+ return No.openBlock(), No.createElementBlock("ol", No.mergeProps({
1021
1086
  key: pos,
1022
1087
  ref_for: true,
1023
1088
  ref_key: "listRef",
@@ -1031,16 +1096,15 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1031
1096
  "data-rich-colors": _ctx.richColors,
1032
1097
  "data-y-position": pos.split("-")[0],
1033
1098
  "data-x-position": pos.split("-")[1],
1034
- "data-lifted": expanded.value && toasts.value.length > 1 && !_ctx.expand,
1035
1099
  style: {
1036
1100
  "--front-toast-height": `${((_a = heights.value[0]) == null ? void 0 : _a.height) || 0}px`,
1037
- "--width": `${Mo.unref(TOAST_WIDTH)}px`,
1101
+ "--width": `${No.unref(TOAST_WIDTH)}px`,
1038
1102
  "--gap": `${_ctx.gap}px`,
1039
1103
  ..._ctx.style,
1040
- ...Mo.unref(attrs).style,
1041
- ...Mo.unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
1104
+ ...No.unref(attrs).style,
1105
+ ...No.unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
1042
1106
  }
1043
- }, _ctx.$attrs, {
1107
+ }, { ref_for: true }, _ctx.$attrs, {
1044
1108
  onBlur,
1045
1109
  onFocus,
1046
1110
  onMouseenter: handleMouseEnter,
@@ -1049,9 +1113,9 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1049
1113
  onDragend: handleDragEnd,
1050
1114
  onPointerdown: onPointerDown,
1051
1115
  onPointerup: handlePointerUp
1052
- }), [(Mo.openBlock(true), Mo.createElementBlock(Mo.Fragment, null, Mo.renderList(filteredToasts(pos, index), (toast$1, idx) => {
1053
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
1054
- return Mo.openBlock(), Mo.createBlock(Toast_default, {
1116
+ }), [(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(filteredToasts(pos, index), (toast$1, idx) => {
1117
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1118
+ return No.openBlock(), No.createBlock(Toast_default, {
1055
1119
  key: toast$1.id,
1056
1120
  heights: heights.value,
1057
1121
  icons: _ctx.icons,
@@ -1059,34 +1123,35 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1059
1123
  toast: toast$1,
1060
1124
  defaultRichColors: _ctx.richColors,
1061
1125
  duration: ((_a2 = _ctx.toastOptions) == null ? void 0 : _a2.duration) ?? _ctx.duration,
1062
- class: Mo.normalizeClass(((_b = _ctx.toastOptions) == null ? void 0 : _b.class) ?? ""),
1126
+ class: No.normalizeClass(((_b = _ctx.toastOptions) == null ? void 0 : _b.class) ?? ""),
1063
1127
  descriptionClass: (_c = _ctx.toastOptions) == null ? void 0 : _c.descriptionClass,
1064
1128
  invert: _ctx.invert,
1065
1129
  visibleToasts: _ctx.visibleToasts,
1066
1130
  closeButton: ((_d = _ctx.toastOptions) == null ? void 0 : _d.closeButton) ?? _ctx.closeButton,
1067
1131
  interacting: interacting.value,
1068
1132
  position: pos,
1069
- style: Mo.normalizeStyle((_e = _ctx.toastOptions) == null ? void 0 : _e.style),
1070
- unstyled: (_f = _ctx.toastOptions) == null ? void 0 : _f.unstyled,
1071
- classes: (_g = _ctx.toastOptions) == null ? void 0 : _g.classes,
1072
- cancelButtonStyle: (_h = _ctx.toastOptions) == null ? void 0 : _h.cancelButtonStyle,
1073
- actionButtonStyle: (_i = _ctx.toastOptions) == null ? void 0 : _i.actionButtonStyle,
1074
- "close-button-aria-label": (_j = _ctx.toastOptions) == null ? void 0 : _j.closeButtonAriaLabel,
1133
+ closeButtonPosition: ((_e = _ctx.toastOptions) == null ? void 0 : _e.closeButtonPosition) ?? _ctx.closeButtonPosition,
1134
+ style: No.normalizeStyle((_f = _ctx.toastOptions) == null ? void 0 : _f.style),
1135
+ unstyled: (_g = _ctx.toastOptions) == null ? void 0 : _g.unstyled,
1136
+ classes: (_h = _ctx.toastOptions) == null ? void 0 : _h.classes,
1137
+ cancelButtonStyle: (_i = _ctx.toastOptions) == null ? void 0 : _i.cancelButtonStyle,
1138
+ actionButtonStyle: (_j = _ctx.toastOptions) == null ? void 0 : _j.actionButtonStyle,
1139
+ "close-button-aria-label": (_k = _ctx.toastOptions) == null ? void 0 : _k.closeButtonAriaLabel,
1075
1140
  toasts: toastsByPosition.value[pos],
1076
1141
  expandByDefault: _ctx.expand,
1077
1142
  gap: _ctx.gap,
1078
- expanded: expanded.value,
1143
+ expanded: expanded.value[pos] || false,
1079
1144
  swipeDirections: props.swipeDirections,
1080
1145
  "onUpdate:heights": updateHeights,
1081
1146
  "onUpdate:height": updateHeight,
1082
1147
  onRemoveToast: removeToast
1083
1148
  }, {
1084
- "close-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "close-icon", {}, () => [Mo.createVNode(CloseIcon_default)])]),
1085
- "loading-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "loading-icon", {}, () => [Mo.createVNode(Loader_default, { visible: toast$1.type === "loading" }, null, 8, ["visible"])])]),
1086
- "success-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "success-icon", {}, () => [Mo.createVNode(SuccessIcon_default)])]),
1087
- "error-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "error-icon", {}, () => [Mo.createVNode(ErrorIcon_default)])]),
1088
- "warning-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "warning-icon", {}, () => [Mo.createVNode(WarningIcon_default)])]),
1089
- "info-icon": Mo.withCtx(() => [Mo.renderSlot(_ctx.$slots, "info-icon", {}, () => [Mo.createVNode(InfoIcon_default)])]),
1149
+ "close-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "close-icon", {}, () => [No.createVNode(CloseIcon_default)])]),
1150
+ "loading-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "loading-icon", {}, () => [No.createVNode(Loader_default, { visible: toast$1.type === "loading" }, null, 8, ["visible"])])]),
1151
+ "success-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "success-icon", {}, () => [No.createVNode(SuccessIcon_default)])]),
1152
+ "error-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "error-icon", {}, () => [No.createVNode(ErrorIcon_default)])]),
1153
+ "warning-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "warning-icon", {}, () => [No.createVNode(WarningIcon_default)])]),
1154
+ "info-icon": No.withCtx(() => [No.renderSlot(_ctx.$slots, "info-icon", {}, () => [No.createVNode(InfoIcon_default)])]),
1090
1155
  _: 2
1091
1156
  }, 1032, [
1092
1157
  "heights",
@@ -1102,6 +1167,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1102
1167
  "closeButton",
1103
1168
  "interacting",
1104
1169
  "position",
1170
+ "closeButtonPosition",
1105
1171
  "style",
1106
1172
  "unstyled",
1107
1173
  "classes",
@@ -1120,12 +1186,14 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.def
1120
1186
  }
1121
1187
  });
1122
1188
  var Toaster_default = Toaster_vue_vue_type_script_setup_true_lang_default;
1123
- const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
1189
+ const _sfc_main = /* @__PURE__ */ No.defineComponent({
1124
1190
  __name: "sonner",
1125
1191
  props: {
1192
+ id: {},
1126
1193
  invert: { type: Boolean },
1127
1194
  theme: {},
1128
1195
  position: {},
1196
+ closeButtonPosition: {},
1129
1197
  hotkey: {},
1130
1198
  richColors: { type: Boolean },
1131
1199
  expand: { type: Boolean },
@@ -1146,7 +1214,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
1146
1214
  setup(__props) {
1147
1215
  const props = __props;
1148
1216
  return (_ctx, _cache) => {
1149
- return Mo.openBlock(), Mo.createBlock(Mo.unref(Toaster_default), Mo.normalizeProps(Mo.guardReactiveProps(props)), null, 16);
1217
+ return No.openBlock(), No.createBlock(No.unref(Toaster_default), No.normalizeProps(No.guardReactiveProps(props)), null, 16);
1150
1218
  };
1151
1219
  }
1152
1220
  });