@youcan/celeste 0.6.69 → 0.6.71

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 +8 -7
  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 +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 +9 -9
  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 +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 +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 +2 -2
  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 +38 -38
  324. package/src/components/sonner/sonner-alert.vue +3 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot } from "vue";
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { O as Oy, k as ky, F as Fy } from "./index.js";
3
+ import { V as Vy, F as Fy, z as zy } from "./index.js";
4
4
  import ScrollBar from "../scroll-bar.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "scroll-area",
@@ -19,18 +19,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  return delegated;
20
20
  });
21
21
  return (_ctx, _cache) => {
22
- return openBlock(), createBlock(unref(Oy), mergeProps(delegatedProps.value, {
22
+ return openBlock(), createBlock(unref(Vy), mergeProps(delegatedProps.value, {
23
23
  class: unref(clsx)("relative overflow-hidden", props.class)
24
24
  }), {
25
25
  default: withCtx(() => [
26
- createVNode(unref(ky), { class: "h-full w-full rounded-[inherit]" }, {
26
+ createVNode(unref(Fy), { class: "h-full w-full rounded-[inherit]" }, {
27
27
  default: withCtx(() => [
28
28
  renderSlot(_ctx.$slots, "default")
29
29
  ]),
30
30
  _: 3
31
31
  }),
32
32
  createVNode(ScrollBar),
33
- createVNode(unref(Fy))
33
+ createVNode(unref(zy))
34
34
  ]),
35
35
  _: 3
36
36
  }, 16, ["class"]);
@@ -1,5 +1,5 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
- import { d as Gy } from "./index.js";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
+ import { f as Xy } from "./index.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "select-group",
5
5
  props: {
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  setup(__props) {
10
10
  const props = __props;
11
11
  return (_ctx, _cache) => {
12
- return openBlock(), createBlock(unref(Gy), normalizeProps(guardReactiveProps(props)), {
12
+ return openBlock(), createBlock(unref(Xy), normalizeProps(guardReactiveProps(props)), {
13
13
  default: withCtx(() => [
14
14
  renderSlot(_ctx.$slots, "default")
15
15
  ]),
@@ -1,7 +1,7 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { useDelegatedProps } from "../use-delegated-props.js";
3
3
  import { c as clsx } from "./clsx.js";
4
- import { x as xe, N as Ny } from "./index.js";
4
+ import { S as Se, K as Ky } from "./index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "select",
7
7
  props: {
@@ -21,9 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  const props = __props;
22
22
  const emits = __emit;
23
23
  const delegatedProps = useDelegatedProps(props, "class");
24
- const forwarded = xe(delegatedProps, emits);
24
+ const forwarded = Se(delegatedProps, emits);
25
25
  return (_ctx, _cache) => {
26
- return openBlock(), createBlock(unref(Ny), mergeProps(unref(forwarded), {
26
+ return openBlock(), createBlock(unref(Ky), mergeProps(unref(forwarded), {
27
27
  class: unref(clsx)("celeste-select", props.class)
28
28
  }), {
29
29
  default: withCtx(() => [
@@ -1,5 +1,5 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
- import { t as tu } from "./index.js";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
+ import { o as ou } from "./index.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sheet-trigger",
5
5
  props: {
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  setup(__props) {
10
10
  const props = __props;
11
11
  return (_ctx, _cache) => {
12
- return openBlock(), createBlock(unref(tu), normalizeProps(guardReactiveProps(props)), {
12
+ return openBlock(), createBlock(unref(ou), normalizeProps(guardReactiveProps(props)), {
13
13
  default: withCtx(() => [
14
14
  renderSlot(_ctx.$slots, "default")
15
15
  ]),
@@ -1,5 +1,5 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
- import { x as xe, e as eu } from "./index.js";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
+ import { S as Se, n as nu } from "./index.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sheet",
5
5
  props: {
@@ -11,9 +11,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props, { emit: __emit }) {
12
12
  const props = __props;
13
13
  const emits = __emit;
14
- const forwarded = xe(props, emits);
14
+ const forwarded = Se(props, emits);
15
15
  return (_ctx, _cache) => {
16
- return openBlock(), createBlock(unref(eu), normalizeProps(guardReactiveProps(unref(forwarded))), {
16
+ return openBlock(), createBlock(unref(nu), normalizeProps(guardReactiveProps(unref(forwarded))), {
17
17
  default: withCtx(() => [
18
18
  renderSlot(_ctx.$slots, "default")
19
19
  ]),
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-content",
@@ -1,6 +1,6 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { f as O } from "./index.js";
3
+ import { h as O } from "./index.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "sidebar-element",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-footer",
@@ -1,6 +1,6 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { f as O } from "./index.js";
3
+ import { h as O } from "./index.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "sidebar-group-label",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-group",
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-header",
@@ -1,6 +1,6 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { f as O } from "./index.js";
3
+ import { h as O } from "./index.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "sidebar-menu-action",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, normalizeClass, unref } from "vue";
1
+ import { defineComponent, createBlock, openBlock, normalizeClass, unref } from "vue";
2
2
  import Badge from "../badge.js";
3
3
  import { c as clsx } from "./clsx.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { f as O } from "./index.js";
3
+ import { h as O } from "./index.js";
4
4
  import { r as reactiveOmit } from "./index2.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  ...{
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-menu-item",
@@ -1,6 +1,6 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
- import { f as O } from "./index.js";
3
+ import { h as O } from "./index.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "sidebar-menu-sub-button",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-menu-sub-item",
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-menu-sub",
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "sidebar-menu",
@@ -1,7 +1,7 @@
1
1
  var _a;
2
- import { defineComponent, ref, computed, openBlock, createElementBlock, mergeProps, unref, renderSlot } from "vue";
3
- import { SIDEBAR_COOKIE_NAME, provideSidebarContext, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_KEYBOARD_SHORTCUT } from "../use-sidebar.js";
4
- import { d as defaultDocument, u as useMediaQuery, a as useVModel, b as useEventListener } from "./index3.js";
2
+ import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot } from "vue";
3
+ import { provideSidebarContext, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH, SIDEBAR_COOKIE_NAME, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_KEYBOARD_SHORTCUT } from "../use-sidebar.js";
4
+ import { u as useMediaQuery, a as useVModel, b as useEventListener, d as defaultDocument } from "./index3.js";
5
5
  import { c as clsx } from "./clsx.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "sidebar-provider",
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createBlock, unref, normalizeClass } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeClass } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  /* empty css */
4
4
  /* empty css */
@@ -1,4 +1,4 @@
1
- import { defineComponent, unref, openBlock, createBlock, mergeProps, withCtx, createVNode, normalizeStyle, createElementVNode, renderSlot, createElementBlock, normalizeClass } from "vue";
1
+ import { defineComponent, createBlock, createElementBlock, unref, openBlock, mergeProps, withCtx, createVNode, normalizeStyle, createElementVNode, renderSlot, normalizeClass } from "vue";
2
2
  import { c as clsx } from "./clsx.js";
3
3
  /* empty css */
4
4
  import SheetContent from "../sheet-content.js";
@@ -1,7 +1,7 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
2
2
  import { useDelegatedProps } from "../use-delegated-props.js";
3
3
  import { c as clsx } from "./clsx.js";
4
- import { x as xe, i as tg, n as ng, o as og, l as ag } from "./index.js";
4
+ import { S as Se, i as og, s as sg, r as rg, l as lg } from "./index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "slider",
7
7
  props: {
@@ -24,20 +24,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  const props = __props;
25
25
  const emits = __emit;
26
26
  const delegatedProps = useDelegatedProps(props, "class");
27
- const forwarded = xe(delegatedProps, emits);
27
+ const forwarded = Se(delegatedProps, emits);
28
28
  return (_ctx, _cache) => {
29
- return openBlock(), createBlock(unref(tg), mergeProps(unref(forwarded), {
29
+ return openBlock(), createBlock(unref(og), mergeProps(unref(forwarded), {
30
30
  class: unref(clsx)("celeste-slider", props.class)
31
31
  }), {
32
32
  default: withCtx(() => [
33
- createVNode(unref(ng), { class: "celeste-slider-track" }, {
33
+ createVNode(unref(sg), { class: "celeste-slider-track" }, {
34
34
  default: withCtx(() => [
35
- createVNode(unref(og), { class: "celeste-slider-range" })
35
+ createVNode(unref(rg), { class: "celeste-slider-range" })
36
36
  ]),
37
37
  _: 1
38
38
  }),
39
39
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (_, key) => {
40
- return openBlock(), createBlock(unref(ag), {
40
+ return openBlock(), createBlock(unref(lg), {
41
41
  key,
42
42
  class: "celeste-slider-thumb"
43
43
  });
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { defineComponent, useAttrs, ref, computed, watchEffect, nextTick, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, unref, renderList, mergeProps, createBlock, normalizeClass, normalizeStyle, withCtx, renderSlot, createVNode, isVNode, onMounted, onBeforeUnmount, watch, resolveDynamicComponent, normalizeProps, createTextVNode, toDisplayString, guardReactiveProps } from "vue";
4
+ import { isVNode, defineComponent, useAttrs, ref, computed, watchEffect, nextTick, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, unref, renderList, mergeProps, createBlock, normalizeStyle, normalizeClass, withCtx, renderSlot, createVNode, onMounted, onBeforeUnmount, watch, resolveDynamicComponent, normalizeProps, createTextVNode, toDisplayString, guardReactiveProps } from "vue";
5
5
  let toastsCounter = 1;
6
6
  var Observer = class {
7
7
  constructor() {
@@ -215,8 +215,33 @@ var Observer = class {
215
215
  });
216
216
  __publicField(this, "custom", (component, data) => {
217
217
  const id = (data == null ? void 0 : data.id) || toastsCounter++;
218
- this.publish({
218
+ const alreadyExists = this.toasts.find((toast$1) => {
219
+ return toast$1.id === id;
220
+ });
221
+ const dismissible = (data == null ? void 0 : data.dismissible) === void 0 ? true : data.dismissible;
222
+ if (this.dismissedToasts.has(id)) this.dismissedToasts.delete(id);
223
+ if (alreadyExists) this.toasts = this.toasts.map((toast$1) => {
224
+ if (toast$1.id === id) {
225
+ this.publish({
226
+ ...toast$1,
227
+ component,
228
+ dismissible,
229
+ id,
230
+ ...data
231
+ });
232
+ return {
233
+ ...toast$1,
234
+ component,
235
+ dismissible,
236
+ id,
237
+ ...data
238
+ };
239
+ }
240
+ return toast$1;
241
+ });
242
+ else this.addToast({
219
243
  component,
244
+ dismissible,
220
245
  id,
221
246
  ...data
222
247
  });
@@ -341,9 +366,14 @@ const _hoisted_1$7 = [
341
366
  "data-invert",
342
367
  "data-swipe-out",
343
368
  "data-swipe-direction",
344
- "data-expanded"
369
+ "data-expanded",
370
+ "data-testid"
371
+ ];
372
+ const _hoisted_2$2 = [
373
+ "aria-label",
374
+ "data-disabled",
375
+ "data-close-button-position"
345
376
  ];
346
- const _hoisted_2$2 = ["aria-label", "data-disabled"];
347
377
  var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
348
378
  __name: "Toast",
349
379
  props: {
@@ -356,6 +386,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
356
386
  heights: {},
357
387
  gap: {},
358
388
  position: {},
389
+ closeButtonPosition: {},
359
390
  visibleToasts: {},
360
391
  expandByDefault: { type: Boolean },
361
392
  closeButton: { type: Boolean },
@@ -459,6 +490,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
459
490
  (_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
460
491
  }
461
492
  function onPointerDown(event) {
493
+ if (event.button === 2) return;
462
494
  if (disabled.value || !dismissible.value) return;
463
495
  dragStartTime.value = /* @__PURE__ */ new Date();
464
496
  offsetBeforeRemove.value = offset.value;
@@ -570,7 +602,11 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
570
602
  });
571
603
  });
572
604
  watch(() => props.toast.delete, (value) => {
573
- if (value !== void 0 && value) deleteToast();
605
+ var _a, _b;
606
+ if (value !== void 0 && value) {
607
+ deleteToast();
608
+ (_b = (_a = props.toast).onDismiss) == null ? void 0 : _b.call(_a, props.toast);
609
+ }
574
610
  }, { deep: true });
575
611
  function handleDragEnd() {
576
612
  swiping.value = false;
@@ -603,6 +639,7 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
603
639
  "data-swipe-out": swipeOut.value,
604
640
  "data-swipe-direction": swipeOutDirection.value,
605
641
  "data-expanded": Boolean(_ctx.expanded || _ctx.expandByDefault && mounted.value),
642
+ "data-testid": _ctx.toast.testId,
606
643
  style: normalizeStyle({
607
644
  "--index": _ctx.index,
608
645
  "--toasts-before": _ctx.index,
@@ -621,9 +658,13 @@ var Toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
621
658
  "aria-label": _ctx.closeButtonAriaLabel || "Close toast",
622
659
  "data-disabled": disabled.value,
623
660
  "data-close-button": "true",
661
+ "data-close-button-position": _ctx.closeButtonPosition,
624
662
  class: normalizeClass(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
663
  onClick: handleCloseToast
626
- }, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, { onCloseToast: handleCloseToast }), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
664
+ }, [((_j = _ctx.icons) == null ? void 0 : _j.close) ? (openBlock(), createBlock(resolveDynamicComponent((_k = _ctx.icons) == null ? void 0 : _k.close), { key: 0 })) : renderSlot(_ctx.$slots, "close-icon", { key: 1 })], 10, _hoisted_2$2)) : createCommentVNode("v-if", true), _ctx.toast.component ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.toast.component), mergeProps({ key: 1 }, _ctx.toast.componentProps, {
665
+ onCloseToast: handleCloseToast,
666
+ isPaused: _ctx.$props.expanded || _ctx.$props.interacting || unref(isDocumentHidden)
667
+ }), null, 16, ["isPaused"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
627
668
  toastType.value !== "default" || _ctx.toast.icon || _ctx.toast.promise ? (openBlock(), createElementBlock("div", {
628
669
  key: 0,
629
670
  "data-icon": "",
@@ -796,8 +837,7 @@ const _hoisted_2 = [
796
837
  "data-theme",
797
838
  "data-rich-colors",
798
839
  "data-y-position",
799
- "data-x-position",
800
- "data-lifted"
840
+ "data-x-position"
801
841
  ];
802
842
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
803
843
  function getDocumentDirection() {
@@ -812,12 +852,14 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
812
852
  inheritAttrs: false,
813
853
  __name: "Toaster",
814
854
  props: {
855
+ id: {},
815
856
  invert: {
816
857
  type: Boolean,
817
858
  default: false
818
859
  },
819
860
  theme: { default: "light" },
820
861
  position: { default: "bottom-right" },
862
+ closeButtonPosition: { default: "top-left" },
821
863
  hotkey: { default: () => ["altKey", "KeyT"] },
822
864
  richColors: {
823
865
  type: Boolean,
@@ -848,11 +890,15 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
848
890
  const props = __props;
849
891
  const attrs = useAttrs();
850
892
  const toasts = ref([]);
893
+ const filteredToastsById = computed(() => {
894
+ if (props.id) return toasts.value.filter((toast$1) => toast$1.toasterId === props.id);
895
+ return toasts.value.filter((toast$1) => !toast$1.toasterId);
896
+ });
851
897
  function filteredToasts(pos, index) {
852
- return toasts.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
898
+ return filteredToastsById.value.filter((toast$1) => !toast$1.position && index === 0 || toast$1.position === pos);
853
899
  }
854
900
  const possiblePositions = computed(() => {
855
- const posList = toasts.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
901
+ const posList = filteredToastsById.value.filter((toast$1) => toast$1.position).map((toast$1) => toast$1.position);
856
902
  return posList.length > 0 ? Array.from(new Set([props.position].concat(posList))) : [props.position];
857
903
  });
858
904
  const toastsByPosition = computed(() => {
@@ -863,8 +909,13 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
863
909
  return result;
864
910
  });
865
911
  const heights = ref([]);
866
- const expanded = ref(false);
912
+ const expanded = ref({});
867
913
  const interacting = ref(false);
914
+ watchEffect(() => {
915
+ possiblePositions.value.forEach((pos) => {
916
+ if (!(pos in expanded.value)) expanded.value[pos] = false;
917
+ });
918
+ });
868
919
  const actualTheme = ref(props.theme !== "system" ? props.theme : typeof window !== "undefined" ? window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "light");
869
920
  const listRef = ref(null);
870
921
  const lastFocusedElementRef = ref(null);
@@ -964,18 +1015,24 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
964
1015
  }
965
1016
  });
966
1017
  watchEffect(() => {
967
- if (toasts.value.length <= 1) expanded.value = false;
1018
+ if (toasts.value.length <= 1) Object.keys(expanded.value).forEach((pos) => {
1019
+ expanded.value[pos] = false;
1020
+ });
968
1021
  });
969
1022
  watchEffect((onInvalidate) => {
970
1023
  function handleKeyDown(event) {
971
1024
  const isHotkeyPressed = props.hotkey.every((key) => event[key] || event.code === key);
972
1025
  const listRefItem = Array.isArray(listRef.value) ? listRef.value[0] : listRef.value;
973
1026
  if (isHotkeyPressed) {
974
- expanded.value = true;
1027
+ possiblePositions.value.forEach((pos) => {
1028
+ expanded.value[pos] = true;
1029
+ });
975
1030
  listRefItem == null ? void 0 : listRefItem.focus();
976
1031
  }
977
1032
  const isItemActive = document.activeElement === listRef.value || (listRefItem == null ? void 0 : listRefItem.contains(document.activeElement));
978
- if (event.code === "Escape" && isItemActive) expanded.value = false;
1033
+ if (event.code === "Escape" && isItemActive) possiblePositions.value.forEach((pos) => {
1034
+ expanded.value[pos] = false;
1035
+ });
979
1036
  }
980
1037
  if (!isClient) return;
981
1038
  document.addEventListener("keydown", handleKeyDown);
@@ -983,14 +1040,22 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
983
1040
  document.removeEventListener("keydown", handleKeyDown);
984
1041
  });
985
1042
  });
986
- function handleMouseEnter() {
987
- expanded.value = true;
1043
+ function handleMouseEnter(event) {
1044
+ const target = event.currentTarget;
1045
+ const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
1046
+ expanded.value[position] = true;
988
1047
  }
989
- function handleMouseLeave() {
990
- if (!interacting.value) expanded.value = false;
1048
+ function handleMouseLeave(event) {
1049
+ if (!interacting.value) {
1050
+ const target = event.currentTarget;
1051
+ const position = target.getAttribute("data-y-position") + "-" + target.getAttribute("data-x-position");
1052
+ expanded.value[position] = false;
1053
+ }
991
1054
  }
992
1055
  function handleDragEnd() {
993
- expanded.value = false;
1056
+ Object.keys(expanded.value).forEach((pos) => {
1057
+ expanded.value[pos] = false;
1058
+ });
994
1059
  }
995
1060
  function handlePointerUp() {
996
1061
  interacting.value = false;
@@ -1030,7 +1095,6 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
1030
1095
  "data-rich-colors": _ctx.richColors,
1031
1096
  "data-y-position": pos.split("-")[0],
1032
1097
  "data-x-position": pos.split("-")[1],
1033
- "data-lifted": expanded.value && toasts.value.length > 1 && !_ctx.expand,
1034
1098
  style: {
1035
1099
  "--front-toast-height": `${((_a = heights.value[0]) == null ? void 0 : _a.height) || 0}px`,
1036
1100
  "--width": `${unref(TOAST_WIDTH)}px`,
@@ -1039,7 +1103,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
1039
1103
  ...unref(attrs).style,
1040
1104
  ...unref(assignOffset)(_ctx.offset, _ctx.mobileOffset)
1041
1105
  }
1042
- }, _ctx.$attrs, {
1106
+ }, { ref_for: true }, _ctx.$attrs, {
1043
1107
  onBlur,
1044
1108
  onFocus,
1045
1109
  onMouseenter: handleMouseEnter,
@@ -1049,7 +1113,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
1049
1113
  onPointerdown: onPointerDown,
1050
1114
  onPointerup: handlePointerUp
1051
1115
  }), [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredToasts(pos, index), (toast$1, idx) => {
1052
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
1116
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1053
1117
  return openBlock(), createBlock(Toast_default, {
1054
1118
  key: toast$1.id,
1055
1119
  heights: heights.value,
@@ -1065,16 +1129,17 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
1065
1129
  closeButton: ((_d = _ctx.toastOptions) == null ? void 0 : _d.closeButton) ?? _ctx.closeButton,
1066
1130
  interacting: interacting.value,
1067
1131
  position: pos,
1068
- style: normalizeStyle((_e = _ctx.toastOptions) == null ? void 0 : _e.style),
1069
- unstyled: (_f = _ctx.toastOptions) == null ? void 0 : _f.unstyled,
1070
- classes: (_g = _ctx.toastOptions) == null ? void 0 : _g.classes,
1071
- cancelButtonStyle: (_h = _ctx.toastOptions) == null ? void 0 : _h.cancelButtonStyle,
1072
- actionButtonStyle: (_i = _ctx.toastOptions) == null ? void 0 : _i.actionButtonStyle,
1073
- "close-button-aria-label": (_j = _ctx.toastOptions) == null ? void 0 : _j.closeButtonAriaLabel,
1132
+ closeButtonPosition: ((_e = _ctx.toastOptions) == null ? void 0 : _e.closeButtonPosition) ?? _ctx.closeButtonPosition,
1133
+ style: normalizeStyle((_f = _ctx.toastOptions) == null ? void 0 : _f.style),
1134
+ unstyled: (_g = _ctx.toastOptions) == null ? void 0 : _g.unstyled,
1135
+ classes: (_h = _ctx.toastOptions) == null ? void 0 : _h.classes,
1136
+ cancelButtonStyle: (_i = _ctx.toastOptions) == null ? void 0 : _i.cancelButtonStyle,
1137
+ actionButtonStyle: (_j = _ctx.toastOptions) == null ? void 0 : _j.actionButtonStyle,
1138
+ "close-button-aria-label": (_k = _ctx.toastOptions) == null ? void 0 : _k.closeButtonAriaLabel,
1074
1139
  toasts: toastsByPosition.value[pos],
1075
1140
  expandByDefault: _ctx.expand,
1076
1141
  gap: _ctx.gap,
1077
- expanded: expanded.value,
1142
+ expanded: expanded.value[pos] || false,
1078
1143
  swipeDirections: props.swipeDirections,
1079
1144
  "onUpdate:heights": updateHeights,
1080
1145
  "onUpdate:height": updateHeight,
@@ -1101,6 +1166,7 @@ var Toaster_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
1101
1166
  "closeButton",
1102
1167
  "interacting",
1103
1168
  "position",
1169
+ "closeButtonPosition",
1104
1170
  "style",
1105
1171
  "unstyled",
1106
1172
  "classes",
@@ -1122,9 +1188,11 @@ var Toaster_default = Toaster_vue_vue_type_script_setup_true_lang_default;
1122
1188
  const _sfc_main = /* @__PURE__ */ defineComponent({
1123
1189
  __name: "sonner",
1124
1190
  props: {
1191
+ id: {},
1125
1192
  invert: { type: Boolean },
1126
1193
  theme: {},
1127
1194
  position: {},
1195
+ closeButtonPosition: {},
1128
1196
  hotkey: {},
1129
1197
  richColors: { type: Boolean },
1130
1198
  expand: { type: Boolean },
@@ -1,7 +1,7 @@
1
- import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, createVNode } from "vue";
2
2
  import { useDelegatedProps } from "../use-delegated-props.js";
3
3
  import { c as clsx } from "./clsx.js";
4
- import { x as xe, r as mg, s as hg } from "./index.js";
4
+ import { S as Se, m as gg, p as bg } from "./index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "switch",
7
7
  props: {
@@ -21,13 +21,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  const props = __props;
22
22
  const emits = __emit;
23
23
  const delegatedProps = useDelegatedProps(props, "class");
24
- const forwarded = xe(delegatedProps, emits);
24
+ const forwarded = Se(delegatedProps, emits);
25
25
  return (_ctx, _cache) => {
26
- return openBlock(), createBlock(unref(mg), mergeProps(unref(forwarded), {
26
+ return openBlock(), createBlock(unref(gg), mergeProps(unref(forwarded), {
27
27
  class: unref(clsx)("celeste-switch", props.class)
28
28
  }), {
29
29
  default: withCtx(() => [
30
- createVNode(unref(hg), { class: "celeste-switch-thumb" })
30
+ createVNode(unref(bg), { class: "celeste-switch-thumb" })
31
31
  ]),
32
32
  _: 1
33
33
  }, 16, ["class"]);
@@ -822,7 +822,7 @@ function convertDecimalToHex(d) {
822
822
  function convertHexToDecimal(h) {
823
823
  return parseIntFromHex(h) / 255;
824
824
  }
825
- var matchers = function() {
825
+ var matchers = (function() {
826
826
  var CSS_INTEGER = "[-\\+]?\\d+%?";
827
827
  var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
828
828
  var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
@@ -841,7 +841,7 @@ var matchers = function() {
841
841
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
842
842
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
843
843
  };
844
- }();
844
+ })();
845
845
  function isValidCSSUnit(color) {
846
846
  return !!matchers.CSS_UNIT.exec(color);
847
847
  }