@astral/ui 1.4.0 → 1.6.1
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/Alert/Alert.d.ts +25 -0
- package/Alert/Alert.js +41 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +17 -0
- package/Badge/styled.d.ts +2 -2
- package/Button/Button.d.ts +1 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/styled.d.ts +2 -2
- package/Chevron/styles.d.ts +3 -3
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/DataGrid/DataGridLoader/styles.d.ts +1 -1
- package/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/DropdownButton/DropdownButton.d.ts +1 -1
- package/FormHelperText/styled.d.ts +6 -6
- package/Grid/styled.d.ts +1 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/styles.d.ts +3 -3
- package/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/ListItem/styles.d.ts +3 -3
- package/ListItemButton/ListItemButton.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/MenuGroup/stories/styled.d.ts +1 -1
- package/MenuItem/styled.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +5 -5
- package/Notification/NotificationTemplate/styled.d.ts +4 -4
- package/Notification/styled.d.ts +12 -12
- package/Product/Product.d.ts +1 -1
- package/Profile/styled.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Select/styled.d.ts +1 -1
- package/SwipeableDrawer/SwipeableDrawer.d.ts +28 -0
- package/SwipeableDrawer/SwipeableDrawer.js +32 -0
- package/SwipeableDrawer/index.d.ts +1 -0
- package/SwipeableDrawer/index.js +17 -0
- package/SwipeableDrawer/styles.d.ts +43 -0
- package/SwipeableDrawer/styles.js +97 -0
- package/Tag/Tag.d.ts +1 -1
- package/Tag/Tag.js +4 -4
- package/Tag/styled.d.ts +4 -4
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Alert/Alert.d.ts +25 -0
- package/esm/Alert/Alert.js +37 -0
- package/esm/Alert/index.d.ts +1 -0
- package/esm/Alert/index.js +1 -0
- package/esm/Badge/styled.d.ts +2 -2
- package/esm/Button/Button.d.ts +1 -1
- package/esm/ButtonBase/ButtonBase.d.ts +1 -1
- package/esm/ButtonBase/styled.d.ts +2 -2
- package/esm/Chevron/styles.d.ts +3 -3
- package/esm/CircularProgress/CircularProgress.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/esm/DataGrid/DataGridLoader/styles.d.ts +1 -1
- package/esm/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/esm/DropdownButton/DropdownButton.d.ts +1 -1
- package/esm/FormHelperText/styled.d.ts +6 -6
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/styles.d.ts +3 -3
- package/esm/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/esm/ListItem/styles.d.ts +3 -3
- package/esm/ListItemButton/ListItemButton.d.ts +1 -1
- package/esm/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/esm/MenuGroup/stories/styled.d.ts +1 -1
- package/esm/MenuItem/styled.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +5 -5
- package/esm/Notification/NotificationTemplate/styled.d.ts +4 -4
- package/esm/Notification/styled.d.ts +12 -12
- package/esm/Product/Product.d.ts +1 -1
- package/esm/Profile/styled.d.ts +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +28 -0
- package/esm/SwipeableDrawer/SwipeableDrawer.js +28 -0
- package/esm/SwipeableDrawer/index.d.ts +1 -0
- package/esm/SwipeableDrawer/index.js +1 -0
- package/esm/SwipeableDrawer/styles.d.ts +43 -0
- package/esm/SwipeableDrawer/styles.js +94 -0
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/Tag.js +4 -3
- package/esm/Tag/styled.d.ts +4 -4
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/theme/components/MuiAlert.d.ts +3 -0
- package/esm/theme/components/MuiAlert.js +54 -0
- package/esm/theme/components/components.js +2 -0
- package/esm/theme/palette/palette.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +2 -2
- package/theme/components/MuiAlert.d.ts +3 -0
- package/theme/components/MuiAlert.js +57 -0
- package/theme/components/components.js +2 -0
- package/theme/palette/palette.js +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export var MuiAlert = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
filledSuccess: function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return {
|
|
6
|
+
backgroundColor: theme.palette.success.light,
|
|
7
|
+
color: theme.palette.text.primary,
|
|
8
|
+
svg: {
|
|
9
|
+
color: theme.palette.green['900'],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
filledError: function (_a) {
|
|
14
|
+
var theme = _a.theme;
|
|
15
|
+
return {
|
|
16
|
+
backgroundColor: theme.palette.error.light,
|
|
17
|
+
color: theme.palette.text.primary,
|
|
18
|
+
svg: {
|
|
19
|
+
color: theme.palette.red['900'],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
filledWarning: function (_a) {
|
|
24
|
+
var theme = _a.theme;
|
|
25
|
+
return {
|
|
26
|
+
backgroundColor: theme.palette.warning.light,
|
|
27
|
+
color: theme.palette.text.primary,
|
|
28
|
+
svg: {
|
|
29
|
+
color: theme.palette.yellow['900'],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
filledInfo: function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return {
|
|
36
|
+
backgroundColor: theme.palette.primary['100'],
|
|
37
|
+
color: theme.palette.text.primary,
|
|
38
|
+
svg: {
|
|
39
|
+
// TODO: для варианта info в дизайн системе нет набора цветов, временно подвязался на primary
|
|
40
|
+
// но в других темах цвета корявые
|
|
41
|
+
color: theme.palette.primary['900'],
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
action: function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return {
|
|
48
|
+
svg: {
|
|
49
|
+
color: "".concat(theme.palette.text.primary, " !important"),
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MuiAlert } from './MuiAlert';
|
|
1
2
|
import { MuiButton } from './MuiButton';
|
|
2
3
|
import { MuiButtonBase } from './MuiButtonBase';
|
|
3
4
|
import { MuiLoadingButton } from './MuiLoadingButton';
|
|
@@ -36,6 +37,7 @@ var MuiRadio = {
|
|
|
36
37
|
};
|
|
37
38
|
export var getComponents = function (fontUrls) { return ({
|
|
38
39
|
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
40
|
+
MuiAlert: MuiAlert,
|
|
39
41
|
MuiButton: MuiButton,
|
|
40
42
|
MuiButtonBase: MuiButtonBase,
|
|
41
43
|
MuiLoadingButton: MuiLoadingButton,
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './ActionCell';
|
|
2
|
+
export * from './Alert';
|
|
2
3
|
export * from './Autocomplete';
|
|
3
4
|
export * from './Badge';
|
|
4
5
|
export * from './Button';
|
|
@@ -63,6 +64,7 @@ export * from './SideDialogActions';
|
|
|
63
64
|
export * from './SideDialogContent';
|
|
64
65
|
export * from './SideDialogContentText';
|
|
65
66
|
export * from './Slide';
|
|
67
|
+
export * from './SwipeableDrawer';
|
|
66
68
|
export * from './Zoom';
|
|
67
69
|
export * from './Notification';
|
|
68
70
|
export * from './LocalizationProvider';
|
package/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ActionCell"), exports);
|
|
18
|
+
__exportStar(require("./Alert"), exports);
|
|
18
19
|
__exportStar(require("./Autocomplete"), exports);
|
|
19
20
|
__exportStar(require("./Badge"), exports);
|
|
20
21
|
__exportStar(require("./Button"), exports);
|
|
@@ -79,6 +80,7 @@ __exportStar(require("./SideDialogActions"), exports);
|
|
|
79
80
|
__exportStar(require("./SideDialogContent"), exports);
|
|
80
81
|
__exportStar(require("./SideDialogContentText"), exports);
|
|
81
82
|
__exportStar(require("./Slide"), exports);
|
|
83
|
+
__exportStar(require("./SwipeableDrawer"), exports);
|
|
82
84
|
__exportStar(require("./Zoom"), exports);
|
|
83
85
|
__exportStar(require("./Notification"), exports);
|
|
84
86
|
__exportStar(require("./LocalizationProvider"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@astral/icons": "^1.
|
|
11
|
+
"@astral/icons": "^1.6.1",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.9.0",
|
|
14
14
|
"@emotion/server": "11.4.0",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiAlert = void 0;
|
|
4
|
+
exports.MuiAlert = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
filledSuccess: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
backgroundColor: theme.palette.success.light,
|
|
10
|
+
color: theme.palette.text.primary,
|
|
11
|
+
svg: {
|
|
12
|
+
color: theme.palette.green['900'],
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
filledError: function (_a) {
|
|
17
|
+
var theme = _a.theme;
|
|
18
|
+
return {
|
|
19
|
+
backgroundColor: theme.palette.error.light,
|
|
20
|
+
color: theme.palette.text.primary,
|
|
21
|
+
svg: {
|
|
22
|
+
color: theme.palette.red['900'],
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
filledWarning: function (_a) {
|
|
27
|
+
var theme = _a.theme;
|
|
28
|
+
return {
|
|
29
|
+
backgroundColor: theme.palette.warning.light,
|
|
30
|
+
color: theme.palette.text.primary,
|
|
31
|
+
svg: {
|
|
32
|
+
color: theme.palette.yellow['900'],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
filledInfo: function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return {
|
|
39
|
+
backgroundColor: theme.palette.primary['100'],
|
|
40
|
+
color: theme.palette.text.primary,
|
|
41
|
+
svg: {
|
|
42
|
+
// TODO: для варианта info в дизайн системе нет набора цветов, временно подвязался на primary
|
|
43
|
+
// но в других темах цвета корявые
|
|
44
|
+
color: theme.palette.primary['900'],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
action: function (_a) {
|
|
49
|
+
var theme = _a.theme;
|
|
50
|
+
return {
|
|
51
|
+
svg: {
|
|
52
|
+
color: "".concat(theme.palette.text.primary, " !important"),
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getComponents = void 0;
|
|
4
|
+
var MuiAlert_1 = require("./MuiAlert");
|
|
4
5
|
var MuiButton_1 = require("./MuiButton");
|
|
5
6
|
var MuiButtonBase_1 = require("./MuiButtonBase");
|
|
6
7
|
var MuiLoadingButton_1 = require("./MuiLoadingButton");
|
|
@@ -39,6 +40,7 @@ var MuiRadio = {
|
|
|
39
40
|
};
|
|
40
41
|
var getComponents = function (fontUrls) { return ({
|
|
41
42
|
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
43
|
+
MuiAlert: MuiAlert_1.MuiAlert,
|
|
42
44
|
MuiButton: MuiButton_1.MuiButton,
|
|
43
45
|
MuiButtonBase: MuiButtonBase_1.MuiButtonBase,
|
|
44
46
|
MuiLoadingButton: MuiLoadingButton_1.MuiLoadingButton,
|