skillgrid 0.0.44 → 0.0.45-dev-34237-snackbar.1313454
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/components/Snackbar/Provider/SnackbarProvider.type.d.ts +1 -1
- package/dist/components/Snackbar/Provider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +2 -1
- package/dist/components/Snackbar/Snackbar.type.d.ts +10 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1093 -1056
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { SnackbarProps } from '../Snackbar.type';
|
|
|
3
3
|
* Параметры, которые можно передать в метод `show()` для отображения Snackbar.
|
|
4
4
|
* Наследует все пропсы Snackbar, кроме управляемых провайдером (`open`, `onClose`).
|
|
5
5
|
*/
|
|
6
|
-
export type ShowSnackbarProps = Omit<SnackbarProps, 'open' | 'onClose' | 'isStack'> & {
|
|
6
|
+
export type ShowSnackbarProps = Omit<SnackbarProps, 'open' | 'onClose' | 'isStack' | 'forceClose'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Контейнер, в котором Snackbar будет показан (по умолчанию — `document.body`).
|
|
9
9
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SnackbarProvider } from './SnackbarProvider';
|
|
2
|
-
export type { SnackbarManagerContextProps, Action, State } from './SnackbarProvider.type';
|
|
2
|
+
export type { SnackbarManagerContextProps, Action, State, ShowSnackbarProps, } from './SnackbarProvider.type';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SnackbarProps } from './Snackbar.type';
|
|
2
|
-
export declare const Snackbar:
|
|
3
|
+
export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LinkButtonProps } from '../Button/Button.type';
|
|
1
2
|
export type Reason = 'timeout' | 'close' | 'escape' | 'swipe';
|
|
2
3
|
/**
|
|
3
4
|
* Свойства компонента Snackbar.
|
|
@@ -71,4 +72,13 @@ export type SnackbarProps = {
|
|
|
71
72
|
* Если true — Snackbar начнёт анимацию закрытия извне
|
|
72
73
|
*/
|
|
73
74
|
forceClose?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Кнопка c пропсами "Link"
|
|
77
|
+
*/
|
|
78
|
+
linkButtonProps?: LinkButtonProps;
|
|
79
|
+
/**
|
|
80
|
+
* Если true — по клику на кнопку "Link" закроется снекбар
|
|
81
|
+
* По дефолту true
|
|
82
|
+
*/
|
|
83
|
+
closeOnLinkClick?: boolean;
|
|
74
84
|
};
|