@ctlyst.id/internal-ui 5.4.6 → 5.4.7

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/dist/index.mjs CHANGED
@@ -5764,7 +5764,7 @@ var styles_default2 = Styles2;
5764
5764
  import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs30 } from "react/jsx-runtime";
5765
5765
  var CustomCloseButton = (props) => {
5766
5766
  const { closeToast } = props;
5767
- return /* @__PURE__ */ jsx65(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
5767
+ return /* @__PURE__ */ jsx65(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: () => closeToast(), children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
5768
5768
  };
5769
5769
  var DEFAULT_OPTIONS = {
5770
5770
  position: "top-right",
@@ -5798,7 +5798,7 @@ var useToast = () => {
5798
5798
  const content = (icon, message, link) => {
5799
5799
  return /* @__PURE__ */ jsxs30(Fragment11, { children: [
5800
5800
  /* @__PURE__ */ jsx65(styles_default2, {}),
5801
- /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
5801
+ /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, flex: 1, children: [
5802
5802
  /* @__PURE__ */ jsxs30(Flex18, { alignItems: "center", children: [
5803
5803
  icon && /* @__PURE__ */ jsx65(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5804
5804
  /* @__PURE__ */ jsx65(chakra7.span, { noOfLines: 2, children: message })