@agilys-system/design-system 1.1.2 → 1.1.3
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
|
@@ -289,7 +289,7 @@ export declare const textVariants: (props?: ({
|
|
|
289
289
|
weight?: "regular" | "medium" | "semibold" | "bold" | null | undefined;
|
|
290
290
|
} & ClassProp) | undefined) => string;
|
|
291
291
|
|
|
292
|
-
export declare function Toast({ open, position, container, className, variant, icon, title, description, action, onClose, ...props }: ToastProps): ReactPortal | null;
|
|
292
|
+
export declare function Toast({ open, position, container, className, variant, icon, title, description, action, onClose, duration, ...props }: ToastProps): ReactPortal | null;
|
|
293
293
|
|
|
294
294
|
export declare namespace Toast {
|
|
295
295
|
var displayName: string;
|
|
@@ -308,6 +308,8 @@ export declare interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
308
308
|
position?: ToastPosition;
|
|
309
309
|
/** Elemento usado como container do portal. Padrão: `document.body`. */
|
|
310
310
|
container?: Element;
|
|
311
|
+
/** Tempo em ms até o toast fechar automaticamente. Use `0` para desativar. Padrão: `6000`. */
|
|
312
|
+
duration?: number;
|
|
311
313
|
}
|
|
312
314
|
|
|
313
315
|
export { }
|
package/package.json
CHANGED