@oliasoft-open-source/react-ui-library 3.9.8 → 3.9.10-beta-1

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.js CHANGED
@@ -54791,9 +54791,9 @@ const RichTextInput = forwardRef(
54791
54791
  });
54792
54792
  useImperativeHandle(ref2, () => getContext2(), [getContext2]);
54793
54793
  const handleChange = ({ helpers, state: state2 }) => {
54794
- const markdown = helpers.getMarkdown();
54795
- setState(state2);
54794
+ const markdown = helpers.getMarkdown(state2);
54796
54795
  onChange(markdown);
54796
+ setState(state2);
54797
54797
  };
54798
54798
  return /* @__PURE__ */ jsx("div", {
54799
54799
  className: styles$e.richTextInput,
@@ -60378,16 +60378,38 @@ const toast = ({ id: id2, message: message2, autoClose = 6e3, onClose }) => {
60378
60378
  withDismiss: false
60379
60379
  }
60380
60380
  });
60381
+ const toastType = (() => {
60382
+ switch (message2 == null ? void 0 : message2.type) {
60383
+ case "Success":
60384
+ return toast$1.TYPE.SUCCESS;
60385
+ case "Warning":
60386
+ return toast$1.TYPE.WARNING;
60387
+ case "Error":
60388
+ return toast$1.TYPE.ERROR;
60389
+ default:
60390
+ return toast$1.TYPE.INFO;
60391
+ }
60392
+ })();
60393
+ if (toast$1.isActive(id2)) {
60394
+ return toast$1.update(id2, {
60395
+ render: content2,
60396
+ autoClose,
60397
+ onClose,
60398
+ type: toastType
60399
+ });
60400
+ }
60381
60401
  return toast$1(content2, {
60382
60402
  toastId: id2,
60383
60403
  autoClose,
60384
60404
  onClose,
60385
- hideProgressBar: true,
60405
+ hideProgressBar: false,
60406
+ icon: false,
60386
60407
  closeOnClick: false,
60387
60408
  pauseOnHover: true,
60388
60409
  draggable: false,
60389
60410
  closeButton: CloseButton2,
60390
- transition: Slide
60411
+ transition: Slide,
60412
+ type: toastType
60391
60413
  });
60392
60414
  };
60393
60415
  const toggle$1 = "_toggle_1s3iw_341";