@officesdk/design 0.1.16 → 0.1.18

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.
@@ -681,7 +681,7 @@ interface ToastProps {
681
681
  /**
682
682
  * Toast message content (main text)
683
683
  */
684
- message: string;
684
+ message: React.ReactNode;
685
685
  /**
686
686
  * Optional description text (shows below message in multiline mode)
687
687
  */
@@ -767,10 +767,10 @@ declare const Toast: React.FC<ToastProps>;
767
767
  interface ToastContextValue {
768
768
  showToast: (props: Omit<ToastProps, 'onClose'>) => string;
769
769
  hideToast: (id: string) => void;
770
- success: (message: string, options?: Partial<ToastProps>) => string;
771
- info: (message: string, options?: Partial<ToastProps>) => string;
772
- error: (message: string, options?: Partial<ToastProps>) => string;
773
- warn: (message: string, options?: Partial<ToastProps>) => string;
770
+ success: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
771
+ info: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
772
+ error: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
773
+ warn: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
774
774
  }
775
775
  interface ToastContainerProps {
776
776
  placement?: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
@@ -843,10 +843,10 @@ declare const toast: {
843
843
  show: (props: Omit<ToastProps, "onClose">) => string;
844
844
  hide: (id: string) => void;
845
845
  hideAll: () => void;
846
- success: (message: string, options?: Partial<ToastProps>) => string;
847
- info: (message: string, options?: Partial<ToastProps>) => string;
848
- error: (message: string, options?: Partial<ToastProps>) => string;
849
- warn: (message: string, options?: Partial<ToastProps>) => string;
846
+ success: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
847
+ info: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
848
+ error: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
849
+ warn: (message: React.ReactNode, options?: Partial<ToastProps>) => string;
850
850
  destroy: () => void;
851
851
  };
852
852