@astral/ui 0.7.1 → 0.8.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/Autocomplete/Autocomplete.js +1 -1
- package/Badge/styled.d.ts +1 -1
- package/Collapse/Collapse.d.ts +3 -0
- package/Collapse/Collapse.js +5 -0
- package/Collapse/index.d.ts +1 -0
- package/Collapse/index.js +13 -0
- package/Divider/Divider.d.ts +3 -0
- package/Divider/Divider.js +5 -0
- package/Divider/index.d.ts +1 -0
- package/Divider/index.js +13 -0
- package/FormHelperText/styled.d.ts +6 -6
- package/Grid/styled.d.ts +1 -1
- package/List/List.d.ts +3 -0
- package/List/List.js +5 -0
- package/List/index.d.ts +1 -0
- package/List/index.js +13 -0
- package/List/styled.d.ts +13 -0
- package/List/styled.js +11 -0
- package/ListItem/ListItem.d.ts +3 -0
- package/ListItem/ListItem.js +32 -0
- package/ListItem/constants.d.ts +5 -0
- package/ListItem/constants.js +9 -0
- package/ListItem/index.d.ts +1 -0
- package/ListItem/index.js +13 -0
- package/ListItem/styled.d.ts +39 -0
- package/ListItem/styled.js +50 -0
- package/ListItem/types.d.ts +2 -0
- package/ListItem/types.js +2 -0
- package/ListItemAvatar/ListItemAvatar.d.ts +3 -0
- package/ListItemAvatar/ListItemAvatar.js +5 -0
- package/ListItemAvatar/index.d.ts +1 -0
- package/ListItemAvatar/index.js +13 -0
- package/ListItemButton/ListItemButton.d.ts +3 -0
- package/ListItemButton/ListItemButton.js +32 -0
- package/ListItemButton/constants.d.ts +5 -0
- package/ListItemButton/constants.js +9 -0
- package/ListItemButton/index.d.ts +1 -0
- package/ListItemButton/index.js +13 -0
- package/ListItemButton/styled.d.ts +35 -0
- package/ListItemButton/styled.js +46 -0
- package/ListItemButton/types.d.ts +2 -0
- package/ListItemButton/types.js +2 -0
- package/ListItemIcon/ListItemIcon.d.ts +3 -0
- package/ListItemIcon/ListItemIcon.js +32 -0
- package/ListItemIcon/index.d.ts +1 -0
- package/ListItemIcon/index.js +13 -0
- package/ListItemIcon/styled.d.ts +4 -0
- package/ListItemIcon/styled.js +14 -0
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +5 -0
- package/ListItemSecondaryAction/index.d.ts +1 -0
- package/ListItemSecondaryAction/index.js +13 -0
- package/ListItemText/ListItemText.d.ts +3 -0
- package/ListItemText/ListItemText.js +32 -0
- package/ListItemText/index.d.ts +1 -0
- package/ListItemText/index.js +13 -0
- package/ListSubheader/ListSubheader.d.ts +3 -0
- package/ListSubheader/ListSubheader.js +5 -0
- package/ListSubheader/index.d.ts +1 -0
- package/ListSubheader/index.js +13 -0
- package/MenuList/styled.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Select/styled.d.ts +1 -1
- package/Tag/Tag.d.ts +1 -1
- package/Tag/Tag.js +3 -2
- package/Tag/constants.d.ts +0 -4
- package/Tag/constants.js +1 -6
- package/Tag/styled.d.ts +1 -1
- package/Tag/styled.js +20 -5
- package/Tag/types.d.ts +2 -4
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Autocomplete/Autocomplete.js +1 -1
- package/esm/Badge/styled.d.ts +1 -1
- package/esm/Collapse/Collapse.d.ts +3 -0
- package/esm/Collapse/Collapse.js +2 -0
- package/esm/Collapse/index.d.ts +1 -0
- package/esm/Collapse/index.js +1 -0
- package/esm/Divider/Divider.d.ts +3 -0
- package/esm/Divider/Divider.js +2 -0
- package/esm/Divider/index.d.ts +1 -0
- package/esm/Divider/index.js +1 -0
- package/esm/FormHelperText/styled.d.ts +6 -6
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/List/List.d.ts +3 -0
- package/esm/List/List.js +1 -0
- package/esm/List/index.d.ts +1 -0
- package/esm/List/index.js +1 -0
- package/esm/List/styled.d.ts +13 -0
- package/esm/List/styled.js +8 -0
- package/esm/ListItem/ListItem.d.ts +3 -0
- package/esm/ListItem/ListItem.js +28 -0
- package/esm/ListItem/constants.d.ts +5 -0
- package/esm/ListItem/constants.js +6 -0
- package/esm/ListItem/index.d.ts +1 -0
- package/esm/ListItem/index.js +1 -0
- package/esm/ListItem/styled.d.ts +39 -0
- package/esm/ListItem/styled.js +45 -0
- package/esm/ListItem/types.d.ts +2 -0
- package/esm/ListItem/types.js +1 -0
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +3 -0
- package/esm/ListItemAvatar/ListItemAvatar.js +2 -0
- package/esm/ListItemAvatar/index.d.ts +1 -0
- package/esm/ListItemAvatar/index.js +1 -0
- package/esm/ListItemButton/ListItemButton.d.ts +3 -0
- package/esm/ListItemButton/ListItemButton.js +28 -0
- package/esm/ListItemButton/constants.d.ts +5 -0
- package/esm/ListItemButton/constants.js +6 -0
- package/esm/ListItemButton/index.d.ts +1 -0
- package/esm/ListItemButton/index.js +1 -0
- package/esm/ListItemButton/styled.d.ts +35 -0
- package/esm/ListItemButton/styled.js +41 -0
- package/esm/ListItemButton/types.d.ts +2 -0
- package/esm/ListItemButton/types.js +1 -0
- package/esm/ListItemIcon/ListItemIcon.d.ts +3 -0
- package/esm/ListItemIcon/ListItemIcon.js +28 -0
- package/esm/ListItemIcon/index.d.ts +1 -0
- package/esm/ListItemIcon/index.js +1 -0
- package/esm/ListItemIcon/styled.d.ts +4 -0
- package/esm/ListItemIcon/styled.js +11 -0
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/esm/ListItemSecondaryAction/index.d.ts +1 -0
- package/esm/ListItemSecondaryAction/index.js +1 -0
- package/esm/ListItemText/ListItemText.d.ts +3 -0
- package/esm/ListItemText/ListItemText.js +28 -0
- package/esm/ListItemText/index.d.ts +1 -0
- package/esm/ListItemText/index.js +1 -0
- package/esm/ListSubheader/ListSubheader.d.ts +3 -0
- package/esm/ListSubheader/ListSubheader.js +2 -0
- package/esm/ListSubheader/index.d.ts +1 -0
- package/esm/ListSubheader/index.js +1 -0
- package/esm/MenuList/styled.d.ts +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/Tag.js +3 -2
- package/esm/Tag/constants.d.ts +0 -4
- package/esm/Tag/constants.js +0 -5
- package/esm/Tag/styled.d.ts +1 -1
- package/esm/Tag/styled.js +20 -5
- package/esm/Tag/types.d.ts +2 -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/theme/components/MuiAutocomplete.js +49 -4
- package/esm/theme/components/MuiButtonBase.d.ts +3 -0
- package/esm/theme/components/MuiButtonBase.js +5 -0
- package/esm/theme/components/components.js +2 -0
- package/package.json +2 -2
- package/theme/components/MuiAutocomplete.js +49 -4
- package/theme/components/MuiButtonBase.d.ts +3 -0
- package/theme/components/MuiButtonBase.js +8 -0
- package/theme/components/components.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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": "^0.
|
|
11
|
+
"@astral/icons": "^0.7.2",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.8.1",
|
|
14
14
|
"@emotion/server": "11.4.0",
|
|
@@ -13,14 +13,59 @@ exports.MuiAutocomplete = {
|
|
|
13
13
|
inputRoot: function (_a) {
|
|
14
14
|
var theme = _a.theme, size = _a.ownerState.size;
|
|
15
15
|
return {
|
|
16
|
-
paddingTop:
|
|
17
|
-
paddingBottom:
|
|
16
|
+
paddingTop: "".concat(theme.spacing(1), " !important"),
|
|
17
|
+
paddingBottom: "".concat(theme.spacing(1), " !important"),
|
|
18
18
|
paddingLeft: "".concat(theme.spacing(1), " !important"),
|
|
19
19
|
minHeight: size === constants_1.AutocompleteSizes.small ? '32px' : '40px',
|
|
20
20
|
};
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
input: function (_a) {
|
|
23
|
+
var theme = _a.theme;
|
|
24
|
+
return {
|
|
25
|
+
padding: '0 !important',
|
|
26
|
+
paddingLeft: "".concat(theme.spacing(1), " !important"),
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
popupIndicator: function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return {
|
|
32
|
+
borderRadius: theme.shape.small,
|
|
33
|
+
width: 20,
|
|
34
|
+
height: 20,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
endAdornment: function () {
|
|
38
|
+
return {
|
|
39
|
+
top: 'calc(50% - 11px)',
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
paper: function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return {
|
|
45
|
+
marginTop: theme.spacing(2),
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
noOptions: function (_a) {
|
|
49
|
+
var theme = _a.theme;
|
|
50
|
+
return {
|
|
51
|
+
color: theme.palette.grey['500'],
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
clearIndicator: function (_a) {
|
|
55
|
+
var theme = _a.theme;
|
|
56
|
+
return {
|
|
57
|
+
padding: 0,
|
|
58
|
+
borderRadius: '50%',
|
|
59
|
+
backgroundColor: theme.palette.grey['500'],
|
|
60
|
+
color: theme.palette.primary.contrastText,
|
|
61
|
+
marginRight: theme.spacing(1),
|
|
62
|
+
width: 14,
|
|
63
|
+
height: 14,
|
|
64
|
+
'>svg': {
|
|
65
|
+
width: 16,
|
|
66
|
+
height: 16,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
24
69
|
},
|
|
25
70
|
},
|
|
26
71
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getComponents = void 0;
|
|
4
|
+
var MuiButtonBase_1 = require("./MuiButtonBase");
|
|
4
5
|
var MuiInputBase_1 = require("./MuiInputBase");
|
|
5
6
|
var MuiFormHelperText_1 = require("./MuiFormHelperText");
|
|
6
7
|
var MuiFormLabel_1 = require("./MuiFormLabel");
|
|
@@ -58,6 +59,7 @@ var MuiMenuItem = {
|
|
|
58
59
|
};
|
|
59
60
|
var getComponents = function (fontUrls) { return ({
|
|
60
61
|
MuiCssBaseline: getMuiCssBaseline(fontUrls),
|
|
62
|
+
MuiButtonBase: MuiButtonBase_1.MuiButtonBase,
|
|
61
63
|
MuiTypography: MuiTypography_1.MuiTypography,
|
|
62
64
|
MuiInputBase: MuiInputBase_1.MuiInputBase,
|
|
63
65
|
MuiInputLabel: MuiInputLabel_1.MuiInputLabel,
|