vxui-react 1.3.0 → 1.3.2

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.
@@ -1,15 +1,20 @@
1
1
  import { ReactNode } from 'react';
2
2
  type ToastTone = 'info' | 'success' | 'warning' | 'danger';
3
+ export type ToastPlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
3
4
  interface ToastInput {
4
5
  title: string;
5
6
  description?: string;
6
7
  tone?: ToastTone;
8
+ duration?: number;
9
+ closable?: boolean;
7
10
  }
8
11
  interface ToastContextValue {
9
12
  push: (toast: ToastInput) => void;
10
13
  }
11
- export declare function ToastProvider({ children }: {
14
+ export interface ToastProviderProps {
12
15
  children: ReactNode;
13
- }): import("react/jsx-runtime").JSX.Element;
16
+ placement?: ToastPlacement;
17
+ }
18
+ export declare function ToastProvider({ children, placement }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
14
19
  export declare function useToast(): ToastContextValue;
15
20
  export {};
@@ -0,0 +1,4 @@
1
+ export declare function getDialogPopoverContext(node: HTMLElement | null): {
2
+ dialogContent: HTMLElement | null;
3
+ shouldInline: boolean;
4
+ };