@youcan/celeste 0.6.71 → 0.6.73

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 (324) hide show
  1. package/dist/celeste.css +7 -6
  2. package/dist/cjs/alert.js +32 -32
  3. package/dist/cjs/badge.js +12 -12
  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 +2289 -2292
  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 +96 -125
  20. package/dist/cjs/chunks/index5.js +3381 -4086
  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 +45 -742
  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 +146 -214
  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 +6 -7
  72. package/dist/cjs/combobox-separator.js +7 -7
  73. package/dist/cjs/combobox-trigger.js +8 -8
  74. package/dist/cjs/combobox.js +53 -54
  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 +7 -8
  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 +8 -6
  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 +2 -4
  166. package/dist/components/rich-editor/link-bubble.d.ts +1 -3
  167. package/dist/es/alert.js +1 -1
  168. package/dist/es/badge.js +1 -1
  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 +1153 -1156
  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 +90 -119
  185. package/dist/es/chunks/index5.js +3394 -4099
  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 +46 -743
  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 +29 -97
  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 +4 -5
  237. package/dist/es/combobox-separator.js +3 -3
  238. package/dist/es/combobox-trigger.js +4 -4
  239. package/dist/es/combobox.js +3 -4
  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 +4 -5
  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 +5 -3
  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/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 No = require("vue");
5
+ const Mo = 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 = No.isVNode(response);
133
+ const isVueComponent = Mo.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" && !No.isVNode(promiseData);
145
+ const isExtendedResult = typeof promiseData === "object" && !Mo.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" && !No.isVNode(promiseData);
160
+ const isExtendedResult = typeof promiseData === "object" && !Mo.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" && !No.isVNode(promiseData);
175
+ const isExtendedResult = typeof promiseData === "object" && !Mo.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" && !No.isVNode(promiseData);
193
+ const isExtendedResult = typeof promiseData === "object" && !Mo.isVNode(promiseData);
194
194
  const toastSettings = isExtendedResult ? promiseData : {
195
195
  message: promiseData || "",
196
196
  id: id || ""
@@ -216,33 +216,8 @@ var Observer = class {
216
216
  });
217
217
  __publicField(this, "custom", (component, data) => {
218
218
  const id = (data == null ? void 0 : data.id) || toastsCounter++;
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({
219
+ this.publish({
244
220
  component,
245
- dismissible,
246
221
  id,
247
222
  ...data
248
223
  });
@@ -299,8 +274,8 @@ const GAP = 14;
299
274
  const SWIPE_THRESHOLD = 45;
300
275
  const TIME_BEFORE_UNMOUNT = 200;
301
276
  function useIsDocumentHidden() {
302
- const isDocumentHidden = No.ref(false);
303
- No.watchEffect(() => {
277
+ const isDocumentHidden = Mo.ref(false);
278
+ Mo.watchEffect(() => {
304
279
  const callback = () => {
305
280
  isDocumentHidden.value = document.hidden;
306
281
  };
@@ -367,15 +342,10 @@ const _hoisted_1$7 = [
367
342
  "data-invert",
368
343
  "data-swipe-out",
369
344
  "data-swipe-direction",
370
- "data-expanded",
371
- "data-testid"
345
+ "data-expanded"
372
346
  ];
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({
347
+ const _hoisted_2$2 = ["aria-label", "data-disabled"];
348
+ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
379
349
  __name: "Toast",
380
350
  props: {
381
351
  toast: {},
@@ -387,7 +357,6 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
387
357
  heights: {},
388
358
  gap: {},
389
359
  position: {},
390
- closeButtonPosition: {},
391
360
  visibleToasts: {},
392
361
  expandByDefault: { type: Boolean },
393
362
  closeButton: { type: Boolean },
@@ -413,31 +382,31 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
413
382
  setup(__props, { emit: __emit }) {
414
383
  const props = __props;
415
384
  const emit = __emit;
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(() => {
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(() => {
435
404
  const currentPosition = props.toast.position || props.position;
436
405
  const samePositionHeights = props.heights.filter((h) => h.position === currentPosition);
437
406
  const index = samePositionHeights.findIndex((height) => height.toastId === props.toast.id);
438
407
  return index >= 0 ? index : 0;
439
408
  });
440
- const toastsHeightBefore = No.computed(() => {
409
+ const toastsHeightBefore = Mo.computed(() => {
441
410
  const currentPosition = props.toast.position || props.position;
442
411
  const samePositionHeights = props.heights.filter((h) => h.position === currentPosition);
443
412
  return samePositionHeights.reduce((prev, curr, reducerIndex) => {
@@ -445,26 +414,26 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
445
414
  return prev + curr.height;
446
415
  }, 0);
447
416
  });
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");
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");
459
428
  const { isDocumentHidden } = useIsDocumentHidden();
460
- const disabled = No.computed(() => toastType.value && toastType.value === "loading");
461
- No.onMounted(() => {
429
+ const disabled = Mo.computed(() => toastType.value && toastType.value === "loading");
430
+ Mo.onMounted(() => {
462
431
  mounted.value = true;
463
432
  remainingTime.value = duration.value;
464
433
  });
465
- No.watchEffect(async () => {
434
+ Mo.watchEffect(async () => {
466
435
  if (!mounted.value || !toastRef.value) return;
467
- await No.nextTick();
436
+ await Mo.nextTick();
468
437
  const toastNode = toastRef.value;
469
438
  const originalHeight = toastNode.style.height;
470
439
  toastNode.style.height = "auto";
@@ -491,7 +460,6 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
491
460
  (_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
492
461
  }
493
462
  function onPointerDown(event) {
494
- if (event.button === 2) return;
495
463
  if (disabled.value || !dismissible.value) return;
496
464
  dragStartTime.value = /* @__PURE__ */ new Date();
497
465
  offsetBeforeRemove.value = offset.value;
@@ -562,7 +530,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
562
530
  (_c = toastRef.value) == null ? void 0 : _c.style.setProperty("--swipe-amount-x", `${swipeAmount.x}px`);
563
531
  (_d = toastRef.value) == null ? void 0 : _d.style.setProperty("--swipe-amount-y", `${swipeAmount.y}px`);
564
532
  }
565
- No.onMounted(() => {
533
+ Mo.onMounted(() => {
566
534
  mounted.value = true;
567
535
  if (!toastRef.value) return;
568
536
  const height = toastRef.value.getBoundingClientRect().height;
@@ -574,10 +542,10 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
574
542
  }, ...props.heights];
575
543
  emit("update:heights", newHeights);
576
544
  });
577
- No.onBeforeUnmount(() => {
545
+ Mo.onBeforeUnmount(() => {
578
546
  if (toastRef.value) emit("removeToast", props.toast);
579
547
  });
580
- No.watchEffect((onInvalidate) => {
548
+ Mo.watchEffect((onInvalidate) => {
581
549
  if (props.toast.promise && toastType.value === "loading" || props.toast.duration === Infinity || props.toast.type === "loading") return;
582
550
  let timeoutId;
583
551
  const pauseTimer = () => {
@@ -602,12 +570,8 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
602
570
  clearTimeout(timeoutId);
603
571
  });
604
572
  });
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
- }
573
+ Mo.watch(() => props.toast.delete, (value) => {
574
+ if (value !== void 0 && value) deleteToast();
611
575
  }, { deep: true });
612
576
  function handleDragEnd() {
613
577
  swiping.value = false;
@@ -616,11 +580,11 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
616
580
  }
617
581
  return (_ctx, _cache) => {
618
582
  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;
619
- return No.openBlock(), No.createElementBlock("li", {
583
+ return Mo.openBlock(), Mo.createElementBlock("li", {
620
584
  tabindex: "0",
621
585
  ref_key: "toastRef",
622
586
  ref: toastRef,
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])),
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])),
624
588
  "data-sonner-toast": "",
625
589
  "data-rich-colors": _ctx.toast.richColors ?? _ctx.defaultRichColors,
626
590
  "data-styled": !Boolean(_ctx.toast.component || ((_f = _ctx.toast) == null ? void 0 : _f.unstyled) || _ctx.unstyled),
@@ -640,8 +604,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
640
604
  "data-swipe-out": swipeOut.value,
641
605
  "data-swipe-direction": swipeOutDirection.value,
642
606
  "data-expanded": Boolean(_ctx.expanded || _ctx.expandByDefault && mounted.value),
643
- "data-testid": _ctx.toast.testId,
644
- style: No.normalizeStyle({
607
+ style: Mo.normalizeStyle({
645
608
  "--index": _ctx.index,
646
609
  "--toasts-before": _ctx.index,
647
610
  "--z-index": _ctx.toasts.length - _ctx.index,
@@ -654,62 +617,58 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defin
654
617
  onPointerdown: onPointerDown,
655
618
  onPointerup: onPointerUp,
656
619
  onPointermove: onPointerMove
657
- }, [closeButton.value && !_ctx.toast.component && toastType.value !== "loading" ? (No.openBlock(), No.createElementBlock("button", {
620
+ }, [closeButton.value && !_ctx.toast.component && toastType.value !== "loading" ? (Mo.openBlock(), Mo.createElementBlock("button", {
658
621
  key: 0,
659
622
  "aria-label": _ctx.closeButtonAriaLabel || "Close toast",
660
623
  "data-disabled": disabled.value,
661
624
  "data-close-button": "true",
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)),
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)),
664
626
  onClick: handleCloseToast
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", {
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", {
670
629
  key: 0,
671
630
  "data-icon": "",
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", {
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", {
675
634
  "data-content": "",
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", {
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", {
678
637
  "data-title": "",
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", {
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", {
681
640
  key: 0,
682
641
  "data-description": "",
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", {
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", {
686
645
  key: 1,
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)),
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)),
689
648
  "data-button": "",
690
649
  "data-cancel": "",
691
650
  onClick: _cache[0] || (_cache[0] = (event) => {
692
651
  var _a2, _b2;
693
- if (!No.unref(isAction)(_ctx.toast.cancel)) return;
652
+ if (!Mo.unref(isAction)(_ctx.toast.cancel)) return;
694
653
  if (!dismissible.value) return;
695
654
  (_b2 = (_a2 = _ctx.toast.cancel).onClick) == null ? void 0 : _b2.call(_a2, event);
696
655
  deleteToast();
697
656
  })
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", {
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", {
700
659
  key: 2,
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)),
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)),
703
662
  "data-button": "",
704
663
  "data-action": "",
705
664
  onClick: _cache[1] || (_cache[1] = (event) => {
706
665
  var _a2, _b2;
707
- if (!No.unref(isAction)(_ctx.toast.action)) return;
666
+ if (!Mo.unref(isAction)(_ctx.toast.action)) return;
708
667
  (_b2 = (_a2 = _ctx.toast.action).onClick) == null ? void 0 : _b2.call(_a2, event);
709
668
  if (event.defaultPrevented) return;
710
669
  deleteToast();
711
670
  })
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)
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)
713
672
  ], 64))], 46, _hoisted_1$7);
714
673
  };
715
674
  }
@@ -733,12 +692,12 @@ const _hoisted_1$6 = {
733
692
  "stroke-linejoin": "round"
734
693
  };
735
694
  function _sfc_render$4(_ctx, _cache) {
736
- return No.openBlock(), No.createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [No.createElementVNode("line", {
695
+ return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [Mo.createElementVNode("line", {
737
696
  x1: "18",
738
697
  y1: "6",
739
698
  x2: "6",
740
699
  y2: "18"
741
- }, null, -1), No.createElementVNode("line", {
700
+ }, null, -1), Mo.createElementVNode("line", {
742
701
  x1: "6",
743
702
  y1: "6",
744
703
  x2: "18",
@@ -748,17 +707,17 @@ function _sfc_render$4(_ctx, _cache) {
748
707
  var CloseIcon_default = /* @__PURE__ */ export_helper_default(_sfc_main$4, [["render", _sfc_render$4]]);
749
708
  const _hoisted_1$5 = ["data-visible"];
750
709
  const _hoisted_2$1 = { class: "sonner-spinner" };
751
- var Loader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defineComponent({
710
+ var Loader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
752
711
  __name: "Loader",
753
712
  props: { visible: { type: Boolean } },
754
713
  setup(__props) {
755
714
  const bars = Array(12).fill(0);
756
715
  return (_ctx, _cache) => {
757
- return No.openBlock(), No.createElementBlock("div", {
716
+ return Mo.openBlock(), Mo.createElementBlock("div", {
758
717
  class: "sonner-loading-wrapper",
759
718
  "data-visible": _ctx.visible
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", {
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", {
762
721
  key: `spinner-bar-${bar}`,
763
722
  class: "sonner-loading-bar"
764
723
  });
@@ -776,7 +735,7 @@ const _hoisted_1$4 = {
776
735
  width: "20"
777
736
  };
778
737
  function _sfc_render$3(_ctx, _cache) {
779
- return No.openBlock(), No.createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
738
+ return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
780
739
  "fill-rule": "evenodd",
781
740
  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",
782
741
  "clip-rule": "evenodd"
@@ -792,7 +751,7 @@ const _hoisted_1$3 = {
792
751
  width: "20"
793
752
  };
794
753
  function _sfc_render$2(_ctx, _cache) {
795
- return No.openBlock(), No.createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
754
+ return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
796
755
  "fill-rule": "evenodd",
797
756
  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",
798
757
  "clip-rule": "evenodd"
@@ -808,7 +767,7 @@ const _hoisted_1$2 = {
808
767
  width: "20"
809
768
  };
810
769
  function _sfc_render$1(_ctx, _cache) {
811
- return No.openBlock(), No.createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
770
+ return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
812
771
  "fill-rule": "evenodd",
813
772
  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",
814
773
  "clip-rule": "evenodd"
@@ -824,7 +783,7 @@ const _hoisted_1$1 = {
824
783
  width: "20"
825
784
  };
826
785
  function _sfc_render(_ctx, _cache) {
827
- return No.openBlock(), No.createElementBlock("svg", _hoisted_1$1, _cache[0] || (_cache[0] = [No.createElementVNode("path", {
786
+ return Mo.openBlock(), Mo.createElementBlock("svg", _hoisted_1$1, _cache[0] || (_cache[0] = [Mo.createElementVNode("path", {
828
787
  "fill-rule": "evenodd",
829
788
  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",
830
789
  "clip-rule": "evenodd"
@@ -838,7 +797,8 @@ const _hoisted_2 = [
838
797
  "data-theme",
839
798
  "data-rich-colors",
840
799
  "data-y-position",
841
- "data-x-position"
800
+ "data-x-position",
801
+ "data-lifted"
842
802
  ];
843
803
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
844
804
  function getDocumentDirection() {
@@ -848,19 +808,17 @@ function getDocumentDirection() {
848
808
  if (dirAttribute === "auto" || !dirAttribute) return window.getComputedStyle(document.documentElement).direction;
849
809
  return dirAttribute;
850
810
  }
851
- var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.defineComponent({
811
+ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ Mo.defineComponent({
852
812
  name: "Toaster",
853
813
  inheritAttrs: false,
854
814
  __name: "Toaster",
855
815
  props: {
856
- id: {},
857
816
  invert: {
858
817
  type: Boolean,
859
818
  default: false
860
819
  },
861
820
  theme: { default: "light" },
862
821
  position: { default: "bottom-right" },
863
- closeButtonPosition: { default: "top-left" },
864
822
  hotkey: { default: () => ["altKey", "KeyT"] },
865
823
  richColors: {
866
824
  type: Boolean,
@@ -889,38 +847,29 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
889
847
  },
890
848
  setup(__props) {
891
849
  const props = __props;
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
- });
850
+ const attrs = Mo.useAttrs();
851
+ const toasts = Mo.ref([]);
898
852
  function filteredToasts(pos, index) {
899
- return filteredToastsById.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
853
+ return toasts.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
900
854
  }
901
- const possiblePositions = No.computed(() => {
902
- const posList = filteredToastsById.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
855
+ const possiblePositions = Mo.computed(() => {
856
+ const posList = toasts.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
903
857
  return posList.length > 0 ? Array.from(new Set([props.position].concat(posList))) : [props.position];
904
858
  });
905
- const toastsByPosition = No.computed(() => {
859
+ const toastsByPosition = Mo.computed(() => {
906
860
  const result = {};
907
861
  possiblePositions.value.forEach((pos) => {
908
862
  result[pos] = toasts.value.filter((t) => t.position === pos);
909
863
  });
910
864
  return result;
911
865
  });
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);
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);
924
873
  const hotkeyLabel = props.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
925
874
  function removeToast(toastToRemove) {
926
875
  var _a;
@@ -955,7 +904,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
955
904
  }
956
905
  interacting.value = true;
957
906
  }
958
- No.watchEffect((onInvalidate) => {
907
+ Mo.watchEffect((onInvalidate) => {
959
908
  const unsubscribe = ToastState.subscribe((toast$1) => {
960
909
  if (toast$1.dismiss) {
961
910
  requestAnimationFrame(() => {
@@ -966,7 +915,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
966
915
  });
967
916
  return;
968
917
  }
969
- No.nextTick(() => {
918
+ Mo.nextTick(() => {
970
919
  const indexOfExistingToast = toasts.value.findIndex((t) => t.id === toast$1.id);
971
920
  if (indexOfExistingToast !== -1) toasts.value = [
972
921
  ...toasts.value.slice(0, indexOfExistingToast),
@@ -981,7 +930,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
981
930
  });
982
931
  onInvalidate(unsubscribe);
983
932
  });
984
- No.watchEffect((onInvalidate) => {
933
+ Mo.watchEffect((onInvalidate) => {
985
934
  if (typeof window === "undefined") return;
986
935
  if (props.theme !== "system") {
987
936
  actualTheme.value = props.theme;
@@ -1008,32 +957,26 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1008
957
  }
1009
958
  });
1010
959
  });
1011
- No.watchEffect(() => {
960
+ Mo.watchEffect(() => {
1012
961
  if (listRef.value && lastFocusedElementRef.value) {
1013
962
  lastFocusedElementRef.value.focus({ preventScroll: true });
1014
963
  lastFocusedElementRef.value = null;
1015
964
  isFocusWithinRef.value = false;
1016
965
  }
1017
966
  });
1018
- No.watchEffect(() => {
1019
- if (toasts.value.length <= 1) Object.keys(expanded.value).forEach((pos) => {
1020
- expanded.value[pos] = false;
1021
- });
967
+ Mo.watchEffect(() => {
968
+ if (toasts.value.length <= 1) expanded.value = false;
1022
969
  });
1023
- No.watchEffect((onInvalidate) => {
970
+ Mo.watchEffect((onInvalidate) => {
1024
971
  function handleKeyDown(event) {
1025
972
  const isHotkeyPressed = props.hotkey.every((key) => event[key] || event.code === key);
1026
973
  const listRefItem = Array.isArray(listRef.value) ? listRef.value[0] : listRef.value;
1027
974
  if (isHotkeyPressed) {
1028
- possiblePositions.value.forEach((pos) => {
1029
- expanded.value[pos] = true;
1030
- });
975
+ expanded.value = true;
1031
976
  listRefItem == null ? void 0 : listRefItem.focus();
1032
977
  }
1033
978
  const isItemActive = document.activeElement === listRef.value || (listRefItem == null ? void 0 : listRefItem.contains(document.activeElement));
1034
- if (event.code === "Escape" && isItemActive) possiblePositions.value.forEach((pos) => {
1035
- expanded.value[pos] = false;
1036
- });
979
+ if (event.code === "Escape" && isItemActive) expanded.value = false;
1037
980
  }
1038
981
  if (!isClient) return;
1039
982
  document.addEventListener("keydown", handleKeyDown);
@@ -1041,22 +984,14 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1041
984
  document.removeEventListener("keydown", handleKeyDown);
1042
985
  });
1043
986
  });
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;
987
+ function handleMouseEnter() {
988
+ expanded.value = true;
1048
989
  }
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
- }
990
+ function handleMouseLeave() {
991
+ if (!interacting.value) expanded.value = false;
1055
992
  }
1056
993
  function handleDragEnd() {
1057
- Object.keys(expanded.value).forEach((pos) => {
1058
- expanded.value[pos] = false;
1059
- });
994
+ expanded.value = false;
1060
995
  }
1061
996
  function handlePointerUp() {
1062
997
  interacting.value = false;
@@ -1074,15 +1009,15 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1074
1009
  }
1075
1010
  }
1076
1011
  return (_ctx, _cache) => {
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)}`,
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)}`,
1079
1014
  tabIndex: -1,
1080
1015
  "aria-live": "polite",
1081
1016
  "aria-relevant": "additions text",
1082
1017
  "aria-atomic": "false"
1083
- }, [(No.openBlock(true), No.createElementBlock(No.Fragment, null, No.renderList(possiblePositions.value, (pos, index) => {
1018
+ }, [(Mo.openBlock(true), Mo.createElementBlock(Mo.Fragment, null, Mo.renderList(possiblePositions.value, (pos, index) => {
1084
1019
  var _a;
1085
- return No.openBlock(), No.createElementBlock("ol", No.mergeProps({
1020
+ return Mo.openBlock(), Mo.createElementBlock("ol", Mo.mergeProps({
1086
1021
  key: pos,
1087
1022
  ref_for: true,
1088
1023
  ref_key: "listRef",
@@ -1096,15 +1031,16 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1096
1031
  "data-rich-colors": _ctx.richColors,
1097
1032
  "data-y-position": pos.split("-")[0],
1098
1033
  "data-x-position": pos.split("-")[1],
1034
+ "data-lifted": expanded.value && toasts.value.length > 1 && !_ctx.expand,
1099
1035
  style: {
1100
1036
  "--front-toast-height": `${((_a = heights.value[0]) == null ? void 0 : _a.height) || 0}px`,
1101
- "--width": `${No.unref(TOAST_WIDTH)}px`,
1037
+ "--width": `${Mo.unref(TOAST_WIDTH)}px`,
1102
1038
  "--gap": `${_ctx.gap}px`,
1103
1039
  ..._ctx.style,
1104
- ...No.unref(attrs).style,
1105
- ...No.unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
1040
+ ...Mo.unref(attrs).style,
1041
+ ...Mo.unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
1106
1042
  }
1107
- }, { ref_for: true }, _ctx.$attrs, {
1043
+ }, _ctx.$attrs, {
1108
1044
  onBlur,
1109
1045
  onFocus,
1110
1046
  onMouseenter: handleMouseEnter,
@@ -1113,9 +1049,9 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1113
1049
  onDragend: handleDragEnd,
1114
1050
  onPointerdown: onPointerDown,
1115
1051
  onPointerup: handlePointerUp
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, {
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, {
1119
1055
  key: toast$1.id,
1120
1056
  heights: heights.value,
1121
1057
  icons: _ctx.icons,
@@ -1123,35 +1059,34 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1123
1059
  toast: toast$1,
1124
1060
  defaultRichColors: _ctx.richColors,
1125
1061
  duration: ((_a2 = _ctx.toastOptions) == null ? void 0 : _a2.duration) ?? _ctx.duration,
1126
- class: No.normalizeClass(((_b = _ctx.toastOptions) == null ? void 0 : _b.class) ?? ""),
1062
+ class: Mo.normalizeClass(((_b = _ctx.toastOptions) == null ? void 0 : _b.class) ?? ""),
1127
1063
  descriptionClass: (_c = _ctx.toastOptions) == null ? void 0 : _c.descriptionClass,
1128
1064
  invert: _ctx.invert,
1129
1065
  visibleToasts: _ctx.visibleToasts,
1130
1066
  closeButton: ((_d = _ctx.toastOptions) == null ? void 0 : _d.closeButton) ?? _ctx.closeButton,
1131
1067
  interacting: interacting.value,
1132
1068
  position: pos,
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,
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,
1140
1075
  toasts: toastsByPosition.value[pos],
1141
1076
  expandByDefault: _ctx.expand,
1142
1077
  gap: _ctx.gap,
1143
- expanded: expanded.value[pos] || false,
1078
+ expanded: expanded.value,
1144
1079
  swipeDirections: props.swipeDirections,
1145
1080
  "onUpdate:heights": updateHeights,
1146
1081
  "onUpdate:height": updateHeight,
1147
1082
  onRemoveToast: removeToast
1148
1083
  }, {
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)])]),
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)])]),
1155
1090
  _: 2
1156
1091
  }, 1032, [
1157
1092
  "heights",
@@ -1167,7 +1102,6 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1167
1102
  "closeButton",
1168
1103
  "interacting",
1169
1104
  "position",
1170
- "closeButtonPosition",
1171
1105
  "style",
1172
1106
  "unstyled",
1173
1107
  "classes",
@@ -1186,14 +1120,12 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ No.def
1186
1120
  }
1187
1121
  });
1188
1122
  var Toaster_default = Toaster_vue_vue_type_script_setup_true_lang_default;
1189
- const _sfc_main = /* @__PURE__ */ No.defineComponent({
1123
+ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
1190
1124
  __name: "sonner",
1191
1125
  props: {
1192
- id: {},
1193
1126
  invert: { type: Boolean },
1194
1127
  theme: {},
1195
1128
  position: {},
1196
- closeButtonPosition: {},
1197
1129
  hotkey: {},
1198
1130
  richColors: { type: Boolean },
1199
1131
  expand: { type: Boolean },
@@ -1214,7 +1146,7 @@ const _sfc_main = /* @__PURE__ */ No.defineComponent({
1214
1146
  setup(__props) {
1215
1147
  const props = __props;
1216
1148
  return (_ctx, _cache) => {
1217
- return No.openBlock(), No.createBlock(No.unref(Toaster_default), No.normalizeProps(No.guardReactiveProps(props)), null, 16);
1149
+ return Mo.openBlock(), Mo.createBlock(Mo.unref(Toaster_default), Mo.normalizeProps(Mo.guardReactiveProps(props)), null, 16);
1218
1150
  };
1219
1151
  }
1220
1152
  });