forstok-ui-lib 8.5.28 → 8.6.0

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.d.ts CHANGED
@@ -135,6 +135,7 @@ type TMessage = {
135
135
  $type: string;
136
136
  message: string | ReactNode;
137
137
  callback?: () => void;
138
+ onClosed?: () => void;
138
139
  };
139
140
  type TMessageQuestion = {
140
141
  $type: string;
@@ -143,9 +144,10 @@ type TMessageQuestion = {
143
144
  callback?: () => void;
144
145
  buttonSubmit?: string;
145
146
  cancelCallback?: () => void;
147
+ onClosed?: () => void;
146
148
  };
147
- type TMessageFunction = ({ timer, $type, message, callback }: TMessage) => void;
148
- type TMessageQuestionFunction = ({ $type, title, subtitle, callback, buttonSubmit }: TMessageQuestion) => void;
149
+ type TMessageFunction = ({ timer, $type, message, callback, }: TMessage) => void;
150
+ type TMessageQuestionFunction = ({ $type, title, subtitle, callback, buttonSubmit, }: TMessageQuestion) => void;
149
151
 
150
152
  type TPopupOpenFunction = (e: MouseEvent, el?: string) => void;
151
153
  type TPopupFunctionParam = {
@@ -551,9 +553,9 @@ type TLoading = HTMLAttributes<HTMLDivElement> & {
551
553
  };
552
554
  declare const LoadingComponent: ({ $mode, $position, $shape, $color, $extendClass, ...props }: TLoading) => react_jsx_runtime.JSX.Element;
553
555
 
554
- declare const MessageComponent: ({ timer, $type, message, callback }: TMessage) => react_jsx_runtime.JSX.Element;
556
+ declare const MessageComponent: ({ timer, $type, message, callback, onClosed, }: TMessage) => react_jsx_runtime.JSX.Element;
555
557
 
556
- declare const MessageQuestionComponent: ({ $type, title, subtitle, callback, buttonSubmit, cancelCallback }: TMessageQuestion) => react_jsx_runtime.JSX.Element;
558
+ declare const MessageQuestionComponent: ({ $type, title, subtitle, callback, buttonSubmit, cancelCallback, onClosed, }: TMessageQuestion) => react_jsx_runtime.JSX.Element;
557
559
 
558
560
  type TPopupOtherProp = {
559
561
  children: ReactNode[];