@liner-fe/prism 1.10.13 → 1.10.14

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.
package/lib/index.mjs CHANGED
@@ -6080,7 +6080,19 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
6080
6080
  children: message
6081
6081
  }
6082
6082
  ),
6083
- button && /* @__PURE__ */ jsx121(Button, { onClick: button.onClick, level: "inverse", size: "s", align: "center", children: button.label })
6083
+ button && /* @__PURE__ */ jsx121(
6084
+ Button,
6085
+ {
6086
+ onClick: () => {
6087
+ button.onClick();
6088
+ removeToast();
6089
+ },
6090
+ level: "inverse",
6091
+ size: "s",
6092
+ align: "center",
6093
+ children: button.label
6094
+ }
6095
+ )
6084
6096
  ] })
6085
6097
  ] });
6086
6098
  }, "SingleToast");