freemium-ui 2.0.0-beta.67 → 2.0.0-beta.69
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.cjs.js +4592 -4565
- package/dist/index.d.ts +8 -6
- package/dist/index.js +4286 -4259
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1472,11 +1472,6 @@ type ThemeProviderType<Theme> = React.ComponentType<{
|
|
|
1472
1472
|
|
|
1473
1473
|
declare const ThemeProvider: ThemeProviderType<FreemiumUiTheme>;
|
|
1474
1474
|
|
|
1475
|
-
type ToastProviderProps = {
|
|
1476
|
-
children: react__default.ReactNode;
|
|
1477
|
-
};
|
|
1478
|
-
declare const ToastProvider: (props: ToastProviderProps) => react__default.JSX.Element;
|
|
1479
|
-
|
|
1480
1475
|
type ToastTypes = 'success' | 'warning' | 'error' | 'info';
|
|
1481
1476
|
interface ToastType {
|
|
1482
1477
|
/**
|
|
@@ -1504,7 +1499,7 @@ interface ToastType {
|
|
|
1504
1499
|
/**
|
|
1505
1500
|
* shows progress bar in the toast
|
|
1506
1501
|
* takes delay as the duration
|
|
1507
|
-
* @default
|
|
1502
|
+
* @default false
|
|
1508
1503
|
*/
|
|
1509
1504
|
showProgress?: boolean;
|
|
1510
1505
|
}
|
|
@@ -1518,10 +1513,17 @@ type UpdateToastsFunction<T> = (fn: (toasts: Array<T>) => Array<T>) => void;
|
|
|
1518
1513
|
interface ToastContextType {
|
|
1519
1514
|
toasts: Array<ToastWithID>;
|
|
1520
1515
|
windowState: 'focus' | 'blur';
|
|
1516
|
+
retainOnWindowBlur?: boolean;
|
|
1517
|
+
retainOnHover?: boolean;
|
|
1521
1518
|
addToast: (toast: ToastType) => void;
|
|
1522
1519
|
updateToasts: (fn: (oldToasts: ToastWithID[]) => ToastWithID[]) => void;
|
|
1523
1520
|
}
|
|
1524
1521
|
|
|
1522
|
+
interface ToastProviderProps extends Pick<ToastContextType, 'retainOnHover' | 'retainOnWindowBlur'> {
|
|
1523
|
+
children: react__default.ReactNode;
|
|
1524
|
+
}
|
|
1525
|
+
declare const ToastProvider: ({ children, retainOnHover, retainOnWindowBlur, }: ToastProviderProps) => react__default.JSX.Element;
|
|
1526
|
+
|
|
1525
1527
|
/**
|
|
1526
1528
|
* useToasts is a custom hook that returns the toasts and a function to add a new toast.
|
|
1527
1529
|
*/
|