@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.
Files changed (155) hide show
  1. package/Autocomplete/Autocomplete.js +1 -1
  2. package/Badge/styled.d.ts +1 -1
  3. package/Collapse/Collapse.d.ts +3 -0
  4. package/Collapse/Collapse.js +5 -0
  5. package/Collapse/index.d.ts +1 -0
  6. package/Collapse/index.js +13 -0
  7. package/Divider/Divider.d.ts +3 -0
  8. package/Divider/Divider.js +5 -0
  9. package/Divider/index.d.ts +1 -0
  10. package/Divider/index.js +13 -0
  11. package/FormHelperText/styled.d.ts +6 -6
  12. package/Grid/styled.d.ts +1 -1
  13. package/List/List.d.ts +3 -0
  14. package/List/List.js +5 -0
  15. package/List/index.d.ts +1 -0
  16. package/List/index.js +13 -0
  17. package/List/styled.d.ts +13 -0
  18. package/List/styled.js +11 -0
  19. package/ListItem/ListItem.d.ts +3 -0
  20. package/ListItem/ListItem.js +32 -0
  21. package/ListItem/constants.d.ts +5 -0
  22. package/ListItem/constants.js +9 -0
  23. package/ListItem/index.d.ts +1 -0
  24. package/ListItem/index.js +13 -0
  25. package/ListItem/styled.d.ts +39 -0
  26. package/ListItem/styled.js +50 -0
  27. package/ListItem/types.d.ts +2 -0
  28. package/ListItem/types.js +2 -0
  29. package/ListItemAvatar/ListItemAvatar.d.ts +3 -0
  30. package/ListItemAvatar/ListItemAvatar.js +5 -0
  31. package/ListItemAvatar/index.d.ts +1 -0
  32. package/ListItemAvatar/index.js +13 -0
  33. package/ListItemButton/ListItemButton.d.ts +3 -0
  34. package/ListItemButton/ListItemButton.js +32 -0
  35. package/ListItemButton/constants.d.ts +5 -0
  36. package/ListItemButton/constants.js +9 -0
  37. package/ListItemButton/index.d.ts +1 -0
  38. package/ListItemButton/index.js +13 -0
  39. package/ListItemButton/styled.d.ts +35 -0
  40. package/ListItemButton/styled.js +46 -0
  41. package/ListItemButton/types.d.ts +2 -0
  42. package/ListItemButton/types.js +2 -0
  43. package/ListItemIcon/ListItemIcon.d.ts +3 -0
  44. package/ListItemIcon/ListItemIcon.js +32 -0
  45. package/ListItemIcon/index.d.ts +1 -0
  46. package/ListItemIcon/index.js +13 -0
  47. package/ListItemIcon/styled.d.ts +4 -0
  48. package/ListItemIcon/styled.js +14 -0
  49. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
  50. package/ListItemSecondaryAction/ListItemSecondaryAction.js +5 -0
  51. package/ListItemSecondaryAction/index.d.ts +1 -0
  52. package/ListItemSecondaryAction/index.js +13 -0
  53. package/ListItemText/ListItemText.d.ts +3 -0
  54. package/ListItemText/ListItemText.js +32 -0
  55. package/ListItemText/index.d.ts +1 -0
  56. package/ListItemText/index.js +13 -0
  57. package/ListSubheader/ListSubheader.d.ts +3 -0
  58. package/ListSubheader/ListSubheader.js +5 -0
  59. package/ListSubheader/index.d.ts +1 -0
  60. package/ListSubheader/index.js +13 -0
  61. package/MenuList/styled.d.ts +1 -1
  62. package/Radio/Radio.d.ts +1 -1
  63. package/Select/styled.d.ts +1 -1
  64. package/Tag/Tag.d.ts +1 -1
  65. package/Tag/Tag.js +3 -2
  66. package/Tag/constants.d.ts +0 -4
  67. package/Tag/constants.js +1 -6
  68. package/Tag/styled.d.ts +1 -1
  69. package/Tag/styled.js +20 -5
  70. package/Tag/types.d.ts +2 -4
  71. package/TextArea/TextArea.d.ts +1 -1
  72. package/TextField/TextField.d.ts +1 -1
  73. package/Tooltip/Tooltip.d.ts +1 -1
  74. package/esm/Autocomplete/Autocomplete.js +1 -1
  75. package/esm/Badge/styled.d.ts +1 -1
  76. package/esm/Collapse/Collapse.d.ts +3 -0
  77. package/esm/Collapse/Collapse.js +2 -0
  78. package/esm/Collapse/index.d.ts +1 -0
  79. package/esm/Collapse/index.js +1 -0
  80. package/esm/Divider/Divider.d.ts +3 -0
  81. package/esm/Divider/Divider.js +2 -0
  82. package/esm/Divider/index.d.ts +1 -0
  83. package/esm/Divider/index.js +1 -0
  84. package/esm/FormHelperText/styled.d.ts +6 -6
  85. package/esm/Grid/styled.d.ts +1 -1
  86. package/esm/List/List.d.ts +3 -0
  87. package/esm/List/List.js +1 -0
  88. package/esm/List/index.d.ts +1 -0
  89. package/esm/List/index.js +1 -0
  90. package/esm/List/styled.d.ts +13 -0
  91. package/esm/List/styled.js +8 -0
  92. package/esm/ListItem/ListItem.d.ts +3 -0
  93. package/esm/ListItem/ListItem.js +28 -0
  94. package/esm/ListItem/constants.d.ts +5 -0
  95. package/esm/ListItem/constants.js +6 -0
  96. package/esm/ListItem/index.d.ts +1 -0
  97. package/esm/ListItem/index.js +1 -0
  98. package/esm/ListItem/styled.d.ts +39 -0
  99. package/esm/ListItem/styled.js +45 -0
  100. package/esm/ListItem/types.d.ts +2 -0
  101. package/esm/ListItem/types.js +1 -0
  102. package/esm/ListItemAvatar/ListItemAvatar.d.ts +3 -0
  103. package/esm/ListItemAvatar/ListItemAvatar.js +2 -0
  104. package/esm/ListItemAvatar/index.d.ts +1 -0
  105. package/esm/ListItemAvatar/index.js +1 -0
  106. package/esm/ListItemButton/ListItemButton.d.ts +3 -0
  107. package/esm/ListItemButton/ListItemButton.js +28 -0
  108. package/esm/ListItemButton/constants.d.ts +5 -0
  109. package/esm/ListItemButton/constants.js +6 -0
  110. package/esm/ListItemButton/index.d.ts +1 -0
  111. package/esm/ListItemButton/index.js +1 -0
  112. package/esm/ListItemButton/styled.d.ts +35 -0
  113. package/esm/ListItemButton/styled.js +41 -0
  114. package/esm/ListItemButton/types.d.ts +2 -0
  115. package/esm/ListItemButton/types.js +1 -0
  116. package/esm/ListItemIcon/ListItemIcon.d.ts +3 -0
  117. package/esm/ListItemIcon/ListItemIcon.js +28 -0
  118. package/esm/ListItemIcon/index.d.ts +1 -0
  119. package/esm/ListItemIcon/index.js +1 -0
  120. package/esm/ListItemIcon/styled.d.ts +4 -0
  121. package/esm/ListItemIcon/styled.js +11 -0
  122. package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
  123. package/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  124. package/esm/ListItemSecondaryAction/index.d.ts +1 -0
  125. package/esm/ListItemSecondaryAction/index.js +1 -0
  126. package/esm/ListItemText/ListItemText.d.ts +3 -0
  127. package/esm/ListItemText/ListItemText.js +28 -0
  128. package/esm/ListItemText/index.d.ts +1 -0
  129. package/esm/ListItemText/index.js +1 -0
  130. package/esm/ListSubheader/ListSubheader.d.ts +3 -0
  131. package/esm/ListSubheader/ListSubheader.js +2 -0
  132. package/esm/ListSubheader/index.d.ts +1 -0
  133. package/esm/ListSubheader/index.js +1 -0
  134. package/esm/MenuList/styled.d.ts +1 -1
  135. package/esm/Radio/Radio.d.ts +1 -1
  136. package/esm/Select/styled.d.ts +1 -1
  137. package/esm/Tag/Tag.d.ts +1 -1
  138. package/esm/Tag/Tag.js +3 -2
  139. package/esm/Tag/constants.d.ts +0 -4
  140. package/esm/Tag/constants.js +0 -5
  141. package/esm/Tag/styled.d.ts +1 -1
  142. package/esm/Tag/styled.js +20 -5
  143. package/esm/Tag/types.d.ts +2 -4
  144. package/esm/TextArea/TextArea.d.ts +1 -1
  145. package/esm/TextField/TextField.d.ts +1 -1
  146. package/esm/Tooltip/Tooltip.d.ts +1 -1
  147. package/esm/theme/components/MuiAutocomplete.js +49 -4
  148. package/esm/theme/components/MuiButtonBase.d.ts +3 -0
  149. package/esm/theme/components/MuiButtonBase.js +5 -0
  150. package/esm/theme/components/components.js +2 -0
  151. package/package.json +2 -2
  152. package/theme/components/MuiAutocomplete.js +49 -4
  153. package/theme/components/MuiButtonBase.d.ts +3 -0
  154. package/theme/components/MuiButtonBase.js +8 -0
  155. 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.7.1",
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.6.2",
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: '0 !important',
17
- paddingBottom: '0 !important',
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
- clearIndicator: {
23
- padding: 0,
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
  };
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiButtonBase: Components<Theme>['MuiButtonBase'];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiButtonBase = void 0;
4
+ exports.MuiButtonBase = {
5
+ defaultProps: {
6
+ disableRipple: true,
7
+ },
8
+ };
@@ -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,