@astral/ui 1.14.0 → 1.15.0
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/Badge/Badge.d.ts +1 -2
- package/Badge/Badge.js +2 -1
- package/ConfigProvider/ConfigProvider.d.ts +10 -0
- package/ConfigProvider/ConfigProvider.js +35 -0
- package/ConfigProvider/index.d.ts +1 -0
- package/ConfigProvider/index.js +17 -0
- package/ContentState/ContentState.d.ts +2 -2
- package/ContentState/ContentState.js +11 -6
- package/DataGrid/DataGridHeadColumn/styles.d.ts +5 -1
- package/DataGrid/DataGridNoData/styles.d.ts +3 -4
- package/DataGridPagination/styles.d.ts +5 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DatePicker/DatePicker.js +2 -2
- package/DatePicker/DatePickerHeader/DatePickerHeader.js +3 -3
- package/DatePicker/DatePickerHeader/styled.d.ts +5 -1
- package/DatePickerProvider/DatePickerProvider.d.ts +4 -13
- package/DatePickerProvider/DatePickerProvider.js +11 -22
- package/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/ErrorBoundary/ErrorBoundary.js +64 -0
- package/ErrorBoundary/index.d.ts +1 -0
- package/ErrorBoundary/index.js +17 -0
- package/MenuGroup/stories/styled.d.ts +5 -1
- package/MenuGroup/styled.d.ts +5 -1
- package/Notification/NotificationTemplate/styled.d.ts +5 -1
- package/OverflowTypography/styles.d.ts +5 -1
- package/Placeholder/styles.d.ts +10 -2
- package/Placeholder/styles.js +1 -1
- package/Typography/Typography.d.ts +26 -3
- package/Typography/index.d.ts +0 -1
- package/Typography/index.js +0 -1
- package/docs/Case/Case.d.ts +8 -0
- package/docs/Case/Case.js +31 -0
- package/docs/Case/index.d.ts +1 -0
- package/docs/Case/index.js +17 -0
- package/docs/Case/styles.d.ts +5 -0
- package/docs/Case/styles.js +16 -0
- package/docs/ExampleTemplate/ExampleTemplate.d.ts +13 -0
- package/docs/ExampleTemplate/ExampleTemplate.js +26 -0
- package/docs/ExampleTemplate/index.d.ts +1 -0
- package/docs/ExampleTemplate/index.js +17 -0
- package/docs/ExampleTemplate/styles.d.ts +9 -0
- package/docs/ExampleTemplate/styles.js +13 -0
- package/docs/index.d.ts +2 -0
- package/docs/index.js +18 -0
- package/esm/Badge/Badge.d.ts +1 -2
- package/esm/Badge/Badge.js +1 -2
- package/esm/ConfigProvider/ConfigProvider.d.ts +10 -0
- package/esm/ConfigProvider/ConfigProvider.js +28 -0
- package/esm/ConfigProvider/index.d.ts +1 -0
- package/esm/ConfigProvider/index.js +1 -0
- package/esm/ContentState/ContentState.d.ts +2 -2
- package/esm/ContentState/ContentState.js +10 -8
- package/esm/DataGrid/DataGridHeadColumn/styles.d.ts +5 -1
- package/esm/DataGrid/DataGridNoData/styles.d.ts +3 -4
- package/esm/DataGridPagination/styles.d.ts +5 -1
- package/esm/DatePicker/DatePicker.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +2 -2
- package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +3 -3
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +5 -1
- package/esm/DatePickerProvider/DatePickerProvider.d.ts +4 -13
- package/esm/DatePickerProvider/DatePickerProvider.js +11 -19
- package/esm/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/esm/ErrorBoundary/ErrorBoundary.js +59 -0
- package/esm/ErrorBoundary/index.d.ts +1 -0
- package/esm/ErrorBoundary/index.js +1 -0
- package/esm/MenuGroup/stories/styled.d.ts +5 -1
- package/esm/MenuGroup/styled.d.ts +5 -1
- package/esm/Notification/NotificationTemplate/styled.d.ts +5 -1
- package/esm/OverflowTypography/styles.d.ts +5 -1
- package/esm/Placeholder/styles.d.ts +10 -2
- package/esm/Placeholder/styles.js +1 -1
- package/esm/Typography/Typography.d.ts +26 -3
- package/esm/Typography/Typography.js +1 -1
- package/esm/Typography/index.d.ts +0 -1
- package/esm/Typography/index.js +0 -1
- package/esm/docs/Case/Case.d.ts +8 -0
- package/esm/docs/Case/Case.js +27 -0
- package/esm/docs/Case/index.d.ts +1 -0
- package/esm/docs/Case/index.js +1 -0
- package/esm/docs/Case/styles.d.ts +5 -0
- package/esm/docs/Case/styles.js +13 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +13 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.js +22 -0
- package/esm/docs/ExampleTemplate/index.d.ts +1 -0
- package/esm/docs/ExampleTemplate/index.js +1 -0
- package/esm/docs/ExampleTemplate/styles.d.ts +9 -0
- package/esm/docs/ExampleTemplate/styles.js +10 -0
- package/esm/docs/index.d.ts +2 -0
- package/esm/docs/index.js +2 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/theme/{baseTheme.d.ts → baseTheme/baseTheme.d.ts} +3 -3
- package/esm/theme/{baseTheme.js → baseTheme/baseTheme.js} +7 -7
- package/esm/{Typography/types.js → theme/baseTheme/baseTheme.test.d.ts} +0 -0
- package/esm/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +1 -1
- package/esm/theme/baseTheme/index.d.ts +1 -0
- package/esm/theme/baseTheme/index.js +1 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +2 -7
- package/theme/{baseTheme.d.ts → baseTheme/baseTheme.d.ts} +3 -3
- package/theme/{baseTheme.js → baseTheme/baseTheme.js} +7 -7
- package/{esm/theme/__tests__/BaseTheme.test.d.ts → theme/baseTheme/baseTheme.test.d.ts} +0 -0
- package/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +1 -1
- package/theme/baseTheme/index.d.ts +1 -0
- package/theme/baseTheme/index.js +17 -0
- package/Typography/types.d.ts +0 -25
- package/Typography/types.js +0 -2
- package/esm/Typography/types.d.ts +0 -25
- package/theme/__tests__/BaseTheme.test.d.ts +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Case"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CaseWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.CaseWrapper = void 0;
|
|
8
|
+
var styles_1 = require("../../styles");
|
|
9
|
+
exports.CaseWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n"], ["\n margin-top: ", ";\n margin-bottom: ", ";\n"])), function (_a) {
|
|
10
|
+
var theme = _a.theme;
|
|
11
|
+
return theme.spacing(6);
|
|
12
|
+
}, function (_a) {
|
|
13
|
+
var theme = _a.theme;
|
|
14
|
+
return theme.spacing(6);
|
|
15
|
+
});
|
|
16
|
+
var templateObject_1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type ExampleTemplateProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare const ExampleTemplate: {
|
|
6
|
+
({ children }: ExampleTemplateProps): JSX.Element;
|
|
7
|
+
Case: ({ title, descriptionList, children }: {
|
|
8
|
+
title: string;
|
|
9
|
+
descriptionList?: string[] | undefined;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ExampleTemplate = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var material_1 = require("@mui/material");
|
|
17
|
+
var Case_1 = require("../Case");
|
|
18
|
+
var styles_1 = require("./styles");
|
|
19
|
+
var ExampleTemplate = function (_a) {
|
|
20
|
+
var children = _a.children;
|
|
21
|
+
var theme = (0, material_1.useTheme)();
|
|
22
|
+
var matches = (0, material_1.useMediaQuery)(theme.breakpoints.down('sm'));
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.ExampleTemplateWrapper, __assign({ matches: matches }, { children: children })));
|
|
24
|
+
};
|
|
25
|
+
exports.ExampleTemplate = ExampleTemplate;
|
|
26
|
+
exports.ExampleTemplate.Case = Case_1.Case;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExampleTemplate';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ExampleTemplate"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type ExampleTemplateWrapperProps = {
|
|
3
|
+
matches: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const ExampleTemplateWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
} & ExampleTemplateWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ExampleTemplateWrapper = void 0;
|
|
8
|
+
var styles_1 = require("../../styles");
|
|
9
|
+
exports.ExampleTemplateWrapper = styles_1.styled.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
10
|
+
var matches = _a.matches;
|
|
11
|
+
return (matches ? '100%' : '70%');
|
|
12
|
+
});
|
|
13
|
+
var templateObject_1;
|
package/docs/index.d.ts
ADDED
package/docs/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Case"), exports);
|
|
18
|
+
__exportStar(require("./ExampleTemplate"), exports);
|
package/esm/Badge/Badge.d.ts
CHANGED
package/esm/Badge/Badge.js
CHANGED
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { StyledBadge } from './styled';
|
|
25
|
-
var Badge = function (_a) {
|
|
25
|
+
export var Badge = function (_a) {
|
|
26
26
|
var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
|
|
27
27
|
return (_jsx(StyledBadge, __assign({ customColor: color }, props, { max: 99 }, { children: children })));
|
|
28
28
|
};
|
|
29
|
-
export default Badge;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
export declare type ConfigContextProps = {
|
|
3
|
+
locale?: Locale;
|
|
4
|
+
captureException?: (errorInfo: ErrorInfo, error: Error) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare type ConfigProviderProps = ConfigContextProps & {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const ConfigContext: import("react").Context<ConfigContextProps>;
|
|
10
|
+
export declare const ConfigProvider: ({ children, locale, captureException, }: ConfigProviderProps) => JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { createContext, useEffect } from 'react';
|
|
14
|
+
import ru from 'date-fns/locale/ru';
|
|
15
|
+
export var ConfigContext = createContext({
|
|
16
|
+
locale: ru,
|
|
17
|
+
captureException: function (errorInfo, error) { return console.error(errorInfo, error); },
|
|
18
|
+
});
|
|
19
|
+
export var ConfigProvider = function (_a) {
|
|
20
|
+
var children = _a.children, _b = _a.locale, locale = _b === void 0 ? ru : _b, captureException = _a.captureException;
|
|
21
|
+
useEffect(function () {
|
|
22
|
+
if (!captureException) {
|
|
23
|
+
console.warn('ConfigProvider: Необходимо наличие captureException, связанного с сервисом мониторинга ошибок.\n' +
|
|
24
|
+
'На данный момент все ошибки, отлавливаемые в ErrorBoundary будут выводиться только в консоль');
|
|
25
|
+
}
|
|
26
|
+
}, []);
|
|
27
|
+
return (_jsx(ConfigContext.Provider, __assign({ value: { locale: locale, captureException: captureException } }, { children: children })));
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigProvider';
|
|
@@ -31,5 +31,5 @@ declare type ContentStateProps = {
|
|
|
31
31
|
*/
|
|
32
32
|
children: ReactNode;
|
|
33
33
|
};
|
|
34
|
-
export declare const ContentState: (
|
|
35
|
-
export
|
|
34
|
+
export declare const ContentState: ({ isLoading, isError, isCustom, errorState, customState, children, loadingContent: LoadingContent, }: ContentStateProps) => JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -9,12 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import {
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useContext } from 'react';
|
|
14
14
|
import { Button, CircularProgress, Placeholder, Typography } from '..';
|
|
15
|
+
import ErrorBoundary from '../ErrorBoundary/ErrorBoundary';
|
|
16
|
+
import { ConfigContext } from '../ConfigProvider';
|
|
15
17
|
import { LoadingContainer } from './styles';
|
|
16
|
-
export var ContentState = function (
|
|
17
|
-
var isLoading =
|
|
18
|
+
export var ContentState = function (_a) {
|
|
19
|
+
var isLoading = _a.isLoading, isError = _a.isError, isCustom = _a.isCustom, errorState = _a.errorState, customState = _a.customState, children = _a.children, _b = _a.loadingContent, LoadingContent = _b === void 0 ? _jsx(CircularProgress, { color: "primary" }) : _b;
|
|
20
|
+
var captureException = useContext(ConfigContext).captureException;
|
|
18
21
|
if (isLoading) {
|
|
19
22
|
return _jsx(LoadingContainer, { children: LoadingContent });
|
|
20
23
|
}
|
|
@@ -22,10 +25,9 @@ export var ContentState = function (props) {
|
|
|
22
25
|
return _jsx(Placeholder, __assign({}, customState));
|
|
23
26
|
}
|
|
24
27
|
if (isError && errorState) {
|
|
25
|
-
var
|
|
26
|
-
var description = errorList.map(function (
|
|
28
|
+
var _c = errorState.title, title = _c === void 0 ? 'Произошла ошибка' : _c, imgAlt = errorState.imgAlt, imgSrc = errorState.imgSrc, errorList = errorState.errorList, onRetry = errorState.onRetry, _d = errorState.actions, actions = _d === void 0 ? _jsx(Button, __assign({ onClick: onRetry }, { children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })) : _d;
|
|
29
|
+
var description = errorList.map(function (errorMessage) { return (_jsx(Typography, __assign({ component: "p" }, { children: errorMessage }), errorMessage)); });
|
|
27
30
|
return (_jsx(Placeholder, { title: title, description: description, imgAlt: imgAlt, imgSrc: imgSrc, Actions: actions }));
|
|
28
31
|
}
|
|
29
|
-
return _jsx(
|
|
32
|
+
return (_jsx(ErrorBoundary, __assign({ captureException: captureException }, { children: children })));
|
|
30
33
|
};
|
|
31
|
-
export default ContentState;
|
|
@@ -6,6 +6,10 @@ export declare const StyledTableCell: import("@emotion/styled").StyledComponent<
|
|
|
6
6
|
width?: CSSProperties['width'];
|
|
7
7
|
sortable?: boolean | undefined;
|
|
8
8
|
}, {}, {}>;
|
|
9
|
-
export declare const TableCellTitle: import("@emotion/styled").StyledComponent<
|
|
9
|
+
export declare const TableCellTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
10
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
11
|
+
component?: import("react").ElementType<any> | undefined;
|
|
12
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
13
|
+
} & {
|
|
10
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
15
|
}, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TypographyProps } from '../../Typography';
|
|
3
2
|
export declare const DataGridNoDataWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
4
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -14,10 +13,10 @@ export declare const DataGridNoDataIcon: import("@emotion/styled").StyledCompone
|
|
|
14
13
|
} & {
|
|
15
14
|
noDataIconWidth: number;
|
|
16
15
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const DataGridNoDataFigcaption: import("@emotion/styled").StyledComponent<
|
|
18
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
} & Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
16
|
+
export declare const DataGridNoDataFigcaption: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
20
17
|
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
21
18
|
component?: import("react").ElementType<any> | undefined;
|
|
22
19
|
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
20
|
+
} & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
22
|
}, {}, {}>;
|
|
@@ -3,6 +3,10 @@ export declare const PaginationWrapper: import("@emotion/styled").StyledComponen
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const Range: import("@emotion/styled").StyledComponent<
|
|
6
|
+
export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
7
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
+
component?: import("react").ElementType<any> | undefined;
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
+
} & {
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
}, {}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactDatePickerProps } from 'react-datepicker';
|
|
3
3
|
import { TextFieldProps } from '../TextField';
|
|
4
|
-
export declare type DatePickerProps = Omit<ReactDatePickerProps, 'renderCustomHeader' | 'locale' | '
|
|
4
|
+
export declare type DatePickerProps = Omit<ReactDatePickerProps, 'renderCustomHeader' | 'locale' | 'renderDayContents' | 'customInput' | 'selected' | 'value' | 'placeholderText'> & {
|
|
5
5
|
inputProps?: TextFieldProps;
|
|
6
6
|
value?: Date;
|
|
7
7
|
};
|
|
@@ -27,7 +27,7 @@ import { InputAdornment } from '@mui/material';
|
|
|
27
27
|
import { CalendarOutlineMd } from '@astral/icons';
|
|
28
28
|
import { isValid, parse } from 'date-fns';
|
|
29
29
|
import { MaskField } from '../MaskField';
|
|
30
|
-
import {
|
|
30
|
+
import { ConfigContext } from '../ConfigProvider';
|
|
31
31
|
import { DatePickerWrapper } from './styled';
|
|
32
32
|
import { DatePickerHeader } from './DatePickerHeader';
|
|
33
33
|
import { DatePickerDay } from './DatePickerDay';
|
|
@@ -35,7 +35,7 @@ var MIN_YEAR = 1000;
|
|
|
35
35
|
export var DatePicker = forwardRef(function (props, ref) {
|
|
36
36
|
var value = props.value, onChange = props.onChange, _a = props.inputProps, inputProps = _a === void 0 ? {} : _a, _b = props.dateFormat, dateFormat = _b === void 0 ? 'dd.MM.yyyy' : _b, restProps = __rest(props, ["value", "onChange", "inputProps", "dateFormat"]);
|
|
37
37
|
var placeholder = inputProps.placeholder, restInputProps = __rest(inputProps, ["placeholder"]);
|
|
38
|
-
var locale = useContext(
|
|
38
|
+
var locale = useContext(ConfigContext).locale;
|
|
39
39
|
// уберкостыль, react-date-picker забирает значение из event.target.value
|
|
40
40
|
var handleMaskFieldAccept = function (val, _maskRef, _e, onMaskFieldChange) {
|
|
41
41
|
onMaskFieldChange === null || onMaskFieldChange === void 0 ? void 0 : onMaskFieldChange({
|
|
@@ -14,11 +14,11 @@ import { useContext, useMemo } from 'react';
|
|
|
14
14
|
import { NextOutlineMd, PreviousOutlineMd } from '@astral/icons';
|
|
15
15
|
import format from 'date-fns/format';
|
|
16
16
|
import { IconButton } from '../../IconButton';
|
|
17
|
-
import {
|
|
17
|
+
import { ConfigContext } from '../../ConfigProvider';
|
|
18
18
|
import { DatePickerHeaderTitle, DatePickerHeaderWrapper } from './styled';
|
|
19
19
|
export var DatePickerHeader = function (props) {
|
|
20
20
|
var increaseMonth = props.increaseMonth, decreaseMonth = props.decreaseMonth, date = props.date;
|
|
21
|
-
var locale = useContext(
|
|
22
|
-
var localizedDate = useMemo(function () { return format(date, 'LLLL yyy', { locale: locale }); }, [date]);
|
|
21
|
+
var locale = useContext(ConfigContext).locale;
|
|
22
|
+
var localizedDate = useMemo(function () { return format(date, 'LLLL yyy', { locale: locale }); }, [date, locale]);
|
|
23
23
|
return (_jsxs(DatePickerHeaderWrapper, { children: [_jsx(IconButton, __assign({ variant: "text", onClick: decreaseMonth }, { children: _jsx(PreviousOutlineMd, {}) })), _jsx(DatePickerHeaderTitle, __assign({ variant: "h6" }, { children: localizedDate })), _jsx(IconButton, __assign({ variant: "text", onClick: increaseMonth }, { children: _jsx(NextOutlineMd, {}) }))] }));
|
|
24
24
|
};
|
|
@@ -3,6 +3,10 @@ export declare const DatePickerHeaderWrapper: import("@emotion/styled").StyledCo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<
|
|
6
|
+
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
7
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
+
component?: import("react").ElementType<any> | undefined;
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
+
} & {
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
}, {}, {}>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare type Props = {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Локализация
|
|
9
|
-
*/
|
|
10
|
-
locale?: Locale;
|
|
11
|
-
};
|
|
12
|
-
export declare const DatePickerProvider: (props: Props) => JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DatePickerContext: import("react").Context<import("../ConfigProvider").ConfigContextProps>;
|
|
3
|
+
declare const DatePickerProvider: ({ children, locale, captureException, }: import("../ConfigProvider").ConfigProviderProps) => JSX.Element;
|
|
4
|
+
export { DatePickerContext, DatePickerProvider };
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { createContext } from 'react';
|
|
14
|
-
import ru from 'date-fns/locale/ru';
|
|
15
|
-
export var DatePickerContext = createContext({ locale: ru });
|
|
16
|
-
export var DatePickerProvider = function (props) {
|
|
17
|
-
var children = props.children, _a = props.locale, locale = _a === void 0 ? ru : _a;
|
|
18
|
-
return (_jsx(DatePickerContext.Provider, __assign({ value: { locale: locale } }, { children: children })));
|
|
19
|
-
};
|
|
1
|
+
import { ConfigContext } from '../ConfigProvider';
|
|
2
|
+
import { ConfigProvider } from '../ConfigProvider';
|
|
3
|
+
/*
|
|
4
|
+
* @deprecated Компонент будет удален с выходом версии 2.0. Используйте ConfigProvider
|
|
5
|
+
*/
|
|
6
|
+
var DatePickerContext = ConfigContext;
|
|
7
|
+
/*
|
|
8
|
+
* @deprecated Компонент будет удален с выходом версии 2.0. Используйте ConfigProvider
|
|
9
|
+
*/
|
|
10
|
+
var DatePickerProvider = ConfigProvider;
|
|
11
|
+
export { DatePickerContext, DatePickerProvider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
captureException?: (errorInfo: ErrorInfo, error: Error) => void;
|
|
5
|
+
};
|
|
6
|
+
declare type State = {
|
|
7
|
+
error: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare class ErrorBoundary extends React.Component<Props, State> {
|
|
10
|
+
state: State;
|
|
11
|
+
static getDerivedStateFromError(): {
|
|
12
|
+
error: boolean;
|
|
13
|
+
};
|
|
14
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
15
|
+
handleReloadPage(): void;
|
|
16
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
17
|
+
}
|
|
18
|
+
export default ErrorBoundary;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
import React from 'react';
|
|
29
|
+
import { Button } from '../Button';
|
|
30
|
+
import { Typography } from '../Typography';
|
|
31
|
+
import { Grid } from '../Grid';
|
|
32
|
+
var ErrorBoundary = /** @class */ (function (_super) {
|
|
33
|
+
__extends(ErrorBoundary, _super);
|
|
34
|
+
function ErrorBoundary() {
|
|
35
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
_this.state = {
|
|
37
|
+
error: false,
|
|
38
|
+
};
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
ErrorBoundary.getDerivedStateFromError = function () {
|
|
42
|
+
return { error: true };
|
|
43
|
+
};
|
|
44
|
+
ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
(_b = (_a = this.props).captureException) === null || _b === void 0 ? void 0 : _b.call(_a, errorInfo, error);
|
|
47
|
+
};
|
|
48
|
+
ErrorBoundary.prototype.handleReloadPage = function () {
|
|
49
|
+
location.reload();
|
|
50
|
+
};
|
|
51
|
+
ErrorBoundary.prototype.render = function () {
|
|
52
|
+
if (this.state.error) {
|
|
53
|
+
return (_jsxs(Grid, __assign({ alignItems: "center", justifyContent: "center" }, { children: [_jsx(Typography, __assign({ variant: "h4", paragraph: true }, { children: "\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430" })), _jsx(Button, __assign({ onClick: this.handleReloadPage }, { children: "\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" }))] })));
|
|
54
|
+
}
|
|
55
|
+
return this.props.children;
|
|
56
|
+
};
|
|
57
|
+
return ErrorBoundary;
|
|
58
|
+
}(React.Component));
|
|
59
|
+
export default ErrorBoundary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorBoundary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorBoundary';
|
|
@@ -29,7 +29,11 @@ export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<{
|
|
|
29
29
|
}, "disabled" | "action" | "divider" | "onFocusVisible" | "tabIndex" | "children" | "autoFocus" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters"> & {
|
|
30
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
32
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
33
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
34
|
+
component?: import("react").ElementType<any> | undefined;
|
|
35
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
36
|
+
} & {
|
|
33
37
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
38
|
}, {}, {}>;
|
|
35
39
|
export declare const StyledMenuWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
2
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
3
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
4
|
+
component?: import("react").ElementType<any> | undefined;
|
|
5
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
6
|
+
} & {
|
|
3
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
8
|
}, {}, {}>;
|
|
5
9
|
export declare const StyledContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -59,7 +59,11 @@ export declare const NotificationCloseIcon: import("@emotion/styled").StyledComp
|
|
|
59
59
|
export declare const NotificationCloseButton: import("@emotion/styled").StyledComponent<Pick<import("../..").BaseButtonProps, "color" | "translate" | keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
60
60
|
theme?: import("@emotion/react").Theme | undefined;
|
|
61
61
|
} & NotificationCloseButtonProps, {}, {}>;
|
|
62
|
-
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<
|
|
62
|
+
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
63
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
64
|
+
component?: import("react").ElementType<any> | undefined;
|
|
65
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
66
|
+
} & {
|
|
63
67
|
theme?: import("@emotion/react").Theme | undefined;
|
|
64
68
|
}, {}, {}>;
|
|
65
69
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OverflowedProps } from './OverflowTypography';
|
|
3
|
-
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<
|
|
3
|
+
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
4
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
5
|
+
component?: import("react").ElementType<any> | undefined;
|
|
6
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
7
|
+
} & {
|
|
4
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
9
|
} & Required<OverflowedProps>, {}, {}>;
|