@astral/ui 0.1.1 → 0.1.2-beta.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 (289) hide show
  1. package/cjs/src/Badge/Badge.d.ts +1 -0
  2. package/cjs/src/Badge/styled.d.ts +2 -2
  3. package/cjs/src/Button/Button.d.ts +1 -0
  4. package/cjs/src/ButtonBase/ButtonBase.d.ts +1 -0
  5. package/cjs/src/Checkbox/Checkbox.d.ts +3 -0
  6. package/cjs/src/Checkbox/Checkbox.js +33 -0
  7. package/cjs/src/Checkbox/icons.d.ts +5 -0
  8. package/cjs/src/Checkbox/icons.js +42 -0
  9. package/cjs/src/Checkbox/index.d.ts +2 -0
  10. package/cjs/src/Checkbox/index.js +14 -0
  11. package/cjs/src/Checkbox/styled.d.ts +4 -0
  12. package/cjs/src/Checkbox/styled.js +35 -0
  13. package/cjs/src/Checkbox/types.d.ts +2 -0
  14. package/cjs/src/Checkbox/types.js +2 -0
  15. package/cjs/src/CircularProgress/CircularProgress.d.ts +1 -0
  16. package/cjs/src/CircularProgress/CircularProgress.js +2 -1
  17. package/cjs/src/CircularProgress/constants.d.ts +1 -2
  18. package/cjs/src/CircularProgress/constants.js +0 -1
  19. package/cjs/src/CircularProgress/styled.d.ts +0 -1
  20. package/cjs/src/CircularProgress/styled.js +2 -8
  21. package/cjs/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  22. package/cjs/src/FormControlLabel/FormControlLabel.js +32 -0
  23. package/cjs/src/FormControlLabel/index.d.ts +2 -0
  24. package/cjs/src/FormControlLabel/index.js +14 -0
  25. package/cjs/src/FormControlLabel/styled.d.ts +3 -0
  26. package/cjs/src/FormControlLabel/styled.js +14 -0
  27. package/cjs/src/FormControlLabel/types.d.ts +2 -0
  28. package/cjs/src/FormControlLabel/types.js +2 -0
  29. package/cjs/src/FormHelperText/FormHelperText.d.ts +4 -0
  30. package/cjs/src/FormHelperText/FormHelperText.js +24 -0
  31. package/cjs/src/FormHelperText/index.d.ts +1 -0
  32. package/cjs/src/FormHelperText/index.js +13 -0
  33. package/cjs/src/FormHelperText/styled.d.ts +41 -0
  34. package/cjs/src/FormHelperText/styled.js +14 -0
  35. package/cjs/src/FormHelperText/types.d.ts +6 -0
  36. package/cjs/src/FormHelperText/types.js +2 -0
  37. package/cjs/src/Grid/Grid.d.ts +3 -0
  38. package/cjs/src/Grid/Grid.js +32 -0
  39. package/cjs/src/Grid/index.d.ts +2 -0
  40. package/cjs/src/Grid/index.js +14 -0
  41. package/cjs/src/Grid/styled.d.ts +13 -0
  42. package/cjs/src/Grid/styled.js +14 -0
  43. package/cjs/src/Grid/types.d.ts +30 -0
  44. package/cjs/src/Grid/types.js +2 -0
  45. package/cjs/src/IconButton/IconButton.d.ts +1 -0
  46. package/cjs/src/Menu/Menu.d.ts +3 -0
  47. package/cjs/src/Menu/Menu.js +32 -0
  48. package/cjs/src/Menu/index.d.ts +1 -0
  49. package/cjs/src/Menu/index.js +13 -0
  50. package/cjs/src/MenuItem/MenuItem.d.ts +3 -0
  51. package/cjs/src/MenuItem/MenuItem.js +32 -0
  52. package/cjs/src/MenuItem/index.d.ts +1 -0
  53. package/cjs/src/MenuItem/index.js +13 -0
  54. package/cjs/src/MenuList/MenuList.d.ts +3 -0
  55. package/cjs/src/MenuList/MenuList.js +32 -0
  56. package/cjs/src/MenuList/index.d.ts +2 -0
  57. package/cjs/src/MenuList/index.js +14 -0
  58. package/cjs/src/MenuList/styled.d.ts +20 -0
  59. package/cjs/src/MenuList/styled.js +20 -0
  60. package/cjs/src/MenuList/types.d.ts +2 -0
  61. package/cjs/src/MenuList/types.js +2 -0
  62. package/cjs/src/Tag/Tag.d.ts +3 -0
  63. package/cjs/src/Tag/Tag.js +32 -0
  64. package/cjs/src/Tag/constants.d.ts +21 -0
  65. package/cjs/src/Tag/constants.js +28 -0
  66. package/cjs/src/Tag/index.d.ts +2 -0
  67. package/cjs/src/Tag/index.js +14 -0
  68. package/cjs/src/Tag/styled.d.ts +26 -0
  69. package/cjs/src/Tag/styled.js +120 -0
  70. package/cjs/src/Tag/types.d.ts +12 -0
  71. package/cjs/src/Tag/types.js +2 -0
  72. package/cjs/src/TextField/TextField.d.ts +4 -0
  73. package/cjs/src/TextField/TextField.js +53 -0
  74. package/cjs/src/TextField/index.d.ts +2 -0
  75. package/cjs/src/TextField/index.js +14 -0
  76. package/cjs/src/TextField/types.d.ts +6 -0
  77. package/cjs/src/TextField/types.js +2 -0
  78. package/cjs/src/Typography/Typography.d.ts +1 -0
  79. package/cjs/src/index.d.ts +5 -0
  80. package/cjs/src/index.js +5 -0
  81. package/cjs/src/theme/__tests__/BaseTheme.test.js +1 -1
  82. package/cjs/src/theme/baseTheme.d.ts +4 -3
  83. package/cjs/src/theme/baseTheme.js +2 -2
  84. package/cjs/src/theme/components/MuiFormHelperText.d.ts +4 -0
  85. package/cjs/src/theme/components/MuiFormHelperText.js +18 -0
  86. package/cjs/src/theme/components/MuiFormLabel.d.ts +4 -0
  87. package/cjs/src/theme/components/MuiFormLabel.js +14 -0
  88. package/cjs/src/theme/components/MuiInputBase.d.ts +4 -0
  89. package/cjs/src/theme/components/MuiInputBase.js +16 -0
  90. package/cjs/src/theme/components/MuiInputLabel.d.ts +4 -0
  91. package/cjs/src/theme/components/MuiInputLabel.js +32 -0
  92. package/cjs/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  93. package/cjs/src/theme/components/MuiOutlinedInput.js +64 -0
  94. package/cjs/src/theme/components/MuiTypography.d.ts +21 -0
  95. package/cjs/src/theme/components/MuiTypography.js +21 -0
  96. package/cjs/src/theme/{components.d.ts → components/components.d.ts} +2 -1
  97. package/cjs/src/theme/components/components.js +65 -0
  98. package/cjs/src/theme/components/index.d.ts +1 -0
  99. package/cjs/src/theme/components/index.js +13 -0
  100. package/cjs/src/theme/elevation.js +5 -5
  101. package/cjs/src/theme/palette/palette.d.ts +1 -1
  102. package/cjs/src/theme/typography.js +1 -1
  103. package/esm/src/Badge/Badge.d.ts +1 -0
  104. package/esm/src/Badge/styled.d.ts +2 -2
  105. package/esm/src/Button/Button.d.ts +1 -0
  106. package/esm/src/ButtonBase/ButtonBase.d.ts +1 -0
  107. package/esm/src/Checkbox/Checkbox.d.ts +3 -0
  108. package/esm/src/Checkbox/Checkbox.js +29 -0
  109. package/esm/src/Checkbox/icons.d.ts +5 -0
  110. package/esm/src/Checkbox/icons.js +36 -0
  111. package/esm/src/Checkbox/index.d.ts +2 -0
  112. package/esm/src/Checkbox/index.js +2 -0
  113. package/esm/src/Checkbox/styled.d.ts +4 -0
  114. package/esm/src/Checkbox/styled.js +32 -0
  115. package/esm/src/Checkbox/types.d.ts +2 -0
  116. package/esm/src/Checkbox/types.js +1 -0
  117. package/esm/src/CircularProgress/CircularProgress.d.ts +1 -0
  118. package/esm/src/CircularProgress/CircularProgress.js +2 -1
  119. package/esm/src/CircularProgress/constants.d.ts +1 -2
  120. package/esm/src/CircularProgress/constants.js +0 -1
  121. package/esm/src/CircularProgress/styled.d.ts +0 -1
  122. package/esm/src/CircularProgress/styled.js +3 -9
  123. package/esm/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  124. package/esm/src/FormControlLabel/FormControlLabel.js +28 -0
  125. package/esm/src/FormControlLabel/index.d.ts +2 -0
  126. package/esm/src/FormControlLabel/index.js +2 -0
  127. package/esm/src/FormControlLabel/styled.d.ts +3 -0
  128. package/esm/src/FormControlLabel/styled.js +11 -0
  129. package/esm/src/FormControlLabel/types.d.ts +2 -0
  130. package/esm/src/FormControlLabel/types.js +1 -0
  131. package/esm/src/FormHelperText/FormHelperText.d.ts +4 -0
  132. package/esm/src/FormHelperText/FormHelperText.js +20 -0
  133. package/esm/src/FormHelperText/index.d.ts +1 -0
  134. package/esm/src/FormHelperText/index.js +1 -0
  135. package/esm/src/FormHelperText/styled.d.ts +41 -0
  136. package/esm/src/FormHelperText/styled.js +11 -0
  137. package/esm/src/FormHelperText/types.d.ts +6 -0
  138. package/esm/src/FormHelperText/types.js +1 -0
  139. package/esm/src/Grid/Grid.d.ts +3 -0
  140. package/esm/src/Grid/Grid.js +28 -0
  141. package/esm/src/Grid/index.d.ts +2 -0
  142. package/esm/src/Grid/index.js +2 -0
  143. package/esm/src/Grid/styled.d.ts +13 -0
  144. package/esm/src/Grid/styled.js +11 -0
  145. package/esm/src/Grid/types.d.ts +30 -0
  146. package/esm/src/Grid/types.js +1 -0
  147. package/esm/src/IconButton/IconButton.d.ts +1 -0
  148. package/esm/src/Menu/Menu.d.ts +3 -0
  149. package/esm/src/Menu/Menu.js +28 -0
  150. package/esm/src/Menu/index.d.ts +1 -0
  151. package/esm/src/Menu/index.js +1 -0
  152. package/esm/src/MenuItem/MenuItem.d.ts +3 -0
  153. package/esm/src/MenuItem/MenuItem.js +28 -0
  154. package/esm/src/MenuItem/index.d.ts +1 -0
  155. package/esm/src/MenuItem/index.js +1 -0
  156. package/esm/src/MenuList/MenuList.d.ts +3 -0
  157. package/esm/src/MenuList/MenuList.js +28 -0
  158. package/esm/src/MenuList/index.d.ts +2 -0
  159. package/esm/src/MenuList/index.js +2 -0
  160. package/esm/src/MenuList/styled.d.ts +20 -0
  161. package/esm/src/MenuList/styled.js +17 -0
  162. package/esm/src/MenuList/types.d.ts +2 -0
  163. package/esm/src/MenuList/types.js +1 -0
  164. package/esm/src/Tag/Tag.d.ts +3 -0
  165. package/esm/src/Tag/Tag.js +28 -0
  166. package/esm/src/Tag/constants.d.ts +21 -0
  167. package/esm/src/Tag/constants.js +25 -0
  168. package/esm/src/Tag/index.d.ts +2 -0
  169. package/esm/src/Tag/index.js +2 -0
  170. package/esm/src/Tag/styled.d.ts +26 -0
  171. package/esm/src/Tag/styled.js +117 -0
  172. package/esm/src/Tag/types.d.ts +12 -0
  173. package/esm/src/Tag/types.js +1 -0
  174. package/esm/src/TextField/TextField.d.ts +4 -0
  175. package/esm/src/TextField/TextField.js +46 -0
  176. package/esm/src/TextField/index.d.ts +2 -0
  177. package/esm/src/TextField/index.js +2 -0
  178. package/esm/src/TextField/types.d.ts +6 -0
  179. package/esm/src/TextField/types.js +1 -0
  180. package/esm/src/Typography/Typography.d.ts +1 -0
  181. package/esm/src/index.d.ts +5 -0
  182. package/esm/src/index.js +5 -0
  183. package/esm/src/theme/__tests__/BaseTheme.test.js +1 -1
  184. package/esm/src/theme/baseTheme.d.ts +4 -3
  185. package/esm/src/theme/baseTheme.js +2 -2
  186. package/esm/src/theme/components/MuiFormHelperText.d.ts +4 -0
  187. package/esm/src/theme/components/MuiFormHelperText.js +15 -0
  188. package/esm/src/theme/components/MuiFormLabel.d.ts +4 -0
  189. package/esm/src/theme/components/MuiFormLabel.js +11 -0
  190. package/esm/src/theme/components/MuiInputBase.d.ts +4 -0
  191. package/esm/src/theme/components/MuiInputBase.js +13 -0
  192. package/esm/src/theme/components/MuiInputLabel.d.ts +4 -0
  193. package/esm/src/theme/components/MuiInputLabel.js +29 -0
  194. package/esm/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  195. package/esm/src/theme/components/MuiOutlinedInput.js +61 -0
  196. package/esm/src/theme/components/MuiTypography.d.ts +21 -0
  197. package/esm/src/theme/components/MuiTypography.js +18 -0
  198. package/esm/src/theme/{components.d.ts → components/components.d.ts} +2 -1
  199. package/esm/src/theme/components/components.js +61 -0
  200. package/esm/src/theme/components/index.d.ts +1 -0
  201. package/esm/src/theme/components/index.js +1 -0
  202. package/esm/src/theme/elevation.js +5 -5
  203. package/esm/src/theme/palette/palette.d.ts +1 -1
  204. package/esm/src/theme/typography.js +1 -1
  205. package/package.json +11 -3
  206. package/types/index.d.ts +1 -0
  207. package/types/src/Badge/Badge.d.ts +4 -0
  208. package/types/src/Badge/index.d.ts +2 -0
  209. package/types/src/Badge/styled.d.ts +50 -0
  210. package/types/src/Badge/types.d.ts +5 -0
  211. package/types/src/Button/Button.d.ts +3 -0
  212. package/types/src/Button/index.d.ts +2 -0
  213. package/types/src/Button/styled.d.ts +13 -0
  214. package/types/src/Button/types.d.ts +7 -0
  215. package/types/src/ButtonBase/ButtonBase.d.ts +3 -0
  216. package/types/src/ButtonBase/constants.d.ts +22 -0
  217. package/types/src/ButtonBase/index.d.ts +3 -0
  218. package/types/src/ButtonBase/styled.d.ts +32 -0
  219. package/types/src/ButtonBase/types.d.ts +11 -0
  220. package/types/src/Checkbox/Checkbox.d.ts +3 -0
  221. package/types/src/Checkbox/icons.d.ts +5 -0
  222. package/types/src/Checkbox/index.d.ts +2 -0
  223. package/types/src/Checkbox/styled.d.ts +4 -0
  224. package/types/src/Checkbox/types.d.ts +2 -0
  225. package/types/src/CircularProgress/CircularProgress.d.ts +4 -0
  226. package/types/src/CircularProgress/constants.d.ts +8 -0
  227. package/types/src/CircularProgress/index.d.ts +2 -0
  228. package/types/src/CircularProgress/styled.d.ts +7 -0
  229. package/types/src/CircularProgress/types.d.ts +8 -0
  230. package/types/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  231. package/types/src/FormControlLabel/index.d.ts +2 -0
  232. package/types/src/FormControlLabel/styled.d.ts +3 -0
  233. package/types/src/FormControlLabel/types.d.ts +2 -0
  234. package/types/src/FormHelperText/FormHelperText.d.ts +4 -0
  235. package/types/src/FormHelperText/index.d.ts +1 -0
  236. package/types/src/FormHelperText/styled.d.ts +41 -0
  237. package/types/src/FormHelperText/types.d.ts +6 -0
  238. package/types/src/Grid/Grid.d.ts +3 -0
  239. package/types/src/Grid/index.d.ts +2 -0
  240. package/types/src/Grid/styled.d.ts +13 -0
  241. package/types/src/Grid/types.d.ts +30 -0
  242. package/types/src/IconButton/IconButton.d.ts +3 -0
  243. package/types/src/IconButton/index.d.ts +1 -0
  244. package/types/src/IconButton/styled.d.ts +19 -0
  245. package/types/src/Menu/Menu.d.ts +3 -0
  246. package/types/src/Menu/index.d.ts +1 -0
  247. package/types/src/MenuItem/MenuItem.d.ts +3 -0
  248. package/types/src/MenuItem/index.d.ts +1 -0
  249. package/types/src/MenuList/MenuList.d.ts +3 -0
  250. package/types/src/MenuList/index.d.ts +2 -0
  251. package/types/src/MenuList/styled.d.ts +20 -0
  252. package/types/src/MenuList/types.d.ts +2 -0
  253. package/types/src/Tag/Tag.d.ts +3 -0
  254. package/types/src/Tag/constants.d.ts +21 -0
  255. package/types/src/Tag/index.d.ts +2 -0
  256. package/types/src/Tag/styled.d.ts +26 -0
  257. package/types/src/Tag/types.d.ts +12 -0
  258. package/types/src/TextField/TextField.d.ts +4 -0
  259. package/types/src/TextField/index.d.ts +2 -0
  260. package/types/src/TextField/types.d.ts +6 -0
  261. package/types/src/ThemeProvider/ThemeProvider.d.ts +7 -0
  262. package/types/src/ThemeProvider/index.d.ts +1 -0
  263. package/types/src/Typography/Typography.d.ts +8 -0
  264. package/types/src/Typography/index.d.ts +1 -0
  265. package/types/src/index.d.ts +13 -0
  266. package/types/src/styles/index.d.ts +1 -0
  267. package/types/src/styles/styled/index.d.ts +1 -0
  268. package/types/src/styles/styled/styled.d.ts +2 -0
  269. package/types/src/styles/styled/types.d.ts +48 -0
  270. package/types/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
  271. package/types/src/theme/baseTheme.d.ts +28 -0
  272. package/types/src/theme/components/MuiFormHelperText.d.ts +4 -0
  273. package/types/src/theme/components/MuiFormLabel.d.ts +4 -0
  274. package/types/src/theme/components/MuiInputBase.d.ts +4 -0
  275. package/types/src/theme/components/MuiInputLabel.d.ts +4 -0
  276. package/types/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  277. package/types/src/theme/components/MuiTypography.d.ts +21 -0
  278. package/types/src/theme/components/components.d.ts +21 -0
  279. package/types/src/theme/components/index.d.ts +1 -0
  280. package/types/src/theme/constants.d.ts +9 -0
  281. package/types/src/theme/elevation.d.ts +8 -0
  282. package/types/src/theme/index.d.ts +5 -0
  283. package/types/src/theme/palette/brandPalette.d.ts +15 -0
  284. package/types/src/theme/palette/index.d.ts +2 -0
  285. package/types/src/theme/palette/palette.d.ts +29 -0
  286. package/types/src/theme/shape.d.ts +6 -0
  287. package/types/src/theme/typography.d.ts +19 -0
  288. package/cjs/src/theme/components.js +0 -28
  289. package/esm/src/theme/components.js +0 -24
@@ -0,0 +1,61 @@
1
+ import { MuiInputBase } from './MuiInputBase';
2
+ import { MuiFormHelperText } from './MuiFormHelperText';
3
+ import { MuiFormLabel } from './MuiFormLabel';
4
+ import { MuiInputLabel } from './MuiInputLabel';
5
+ import { MuiOutlinedInput } from './MuiOutlinedInput';
6
+ import { MuiTypography } from './MuiTypography';
7
+ var getMuiCssBaseline = function (fontUrls) { return ({
8
+ styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
9
+ }); };
10
+ var MuiCheckbox = {
11
+ defaultProps: {
12
+ disableRipple: true,
13
+ },
14
+ };
15
+ var MuiMenu = {
16
+ defaultProps: {
17
+ autoFocus: false,
18
+ },
19
+ styleOverrides: {
20
+ paper: function (_a) {
21
+ var theme = _a.theme;
22
+ return {
23
+ marginTop: theme.spacing(2),
24
+ '&.MuiPaper-root': {
25
+ borderRadius: theme.shape.small,
26
+ boxShadow: theme.elevation[200],
27
+ },
28
+ };
29
+ },
30
+ list: function (_a) {
31
+ var theme = _a.theme;
32
+ return {
33
+ padding: theme.spacing(1, 0),
34
+ };
35
+ },
36
+ },
37
+ };
38
+ var MuiMenuItem = {
39
+ styleOverrides: {
40
+ root: function (_a) {
41
+ var theme = _a.theme;
42
+ return {
43
+ '&:hover': {
44
+ backgroundColor: theme.palette.background.elementHover,
45
+ },
46
+ };
47
+ },
48
+ },
49
+ };
50
+ export var getComponents = function (fontUrls) { return ({
51
+ MuiCssBaseline: getMuiCssBaseline(fontUrls),
52
+ MuiTypography: MuiTypography,
53
+ MuiInputBase: MuiInputBase,
54
+ MuiInputLabel: MuiInputLabel,
55
+ MuiOutlinedInput: MuiOutlinedInput,
56
+ MuiFormLabel: MuiFormLabel,
57
+ MuiFormHelperText: MuiFormHelperText,
58
+ MuiCheckbox: MuiCheckbox,
59
+ MuiMenu: MuiMenu,
60
+ MuiMenuItem: MuiMenuItem,
61
+ }); };
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -1,7 +1,7 @@
1
1
  export var elevation = {
2
- 100: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 1px 1px 0px #072D5740;',
3
- 200: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 3px 5px 0px #072D5733;',
4
- 300: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 8px 12px 0px #072D5726;',
5
- 400: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 10px 18px 0px #072D5726;',
6
- 500: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 18px 28px 0px #072D5726;',
2
+ 100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;',
3
+ 200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;',
4
+ 300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;',
5
+ 400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;',
6
+ 500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;',
7
7
  };
@@ -13,7 +13,7 @@ export declare type Color = {
13
13
  100: string;
14
14
  };
15
15
  export declare type PrimaryColorOptions = PaletteColorOptions & Color;
16
- declare type Background = TypeBackground & {
16
+ export declare type Background = TypeBackground & {
17
17
  element: string;
18
18
  elementHover: string;
19
19
  };
@@ -2,7 +2,7 @@ var HTML_FONT_SIZE = 14;
2
2
  // Т.к. нет досутпа к теме, написал функцию для конвертации px в rem
3
3
  export var pxToRem = function (fontSize, htmlFontSize) {
4
4
  if (htmlFontSize === void 0) { htmlFontSize = HTML_FONT_SIZE; }
5
- return fontSize / htmlFontSize + "rem";
5
+ return "".concat(fontSize / htmlFontSize, "rem");
6
6
  };
7
7
  export var typography = {
8
8
  fontSize: 14,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-beta.1",
4
4
  "type": "module",
5
5
  "source": "./src/index.ts",
6
6
  "jest": {
@@ -9,6 +9,7 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
+ "@astral/icons": "^1.0.0",
12
13
  "@emotion/react": "11.5.0",
13
14
  "@emotion/styled": "11.3.0",
14
15
  "@mui/base": "5.0.0-alpha.66",
@@ -30,7 +31,14 @@
30
31
  },
31
32
  "keywords": [],
32
33
  "sideEffects": false,
34
+ "types": "./types/index.d.ts",
33
35
  "main": "./cjs/index.js",
34
- "types": "./esm/index.d.ts",
35
- "module": "./esm/index.js"
36
+ "module": "./esm/index.js",
37
+ "exports": {
38
+ ".": {
39
+ "import": "./esm/index.js",
40
+ "require": "./cjs/index.js",
41
+ "types": "./types/index.d.ts"
42
+ }
43
+ }
36
44
  }
@@ -0,0 +1 @@
1
+ export * from './src';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BadgeProps } from './types';
3
+ declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
4
+ export default Badge;
@@ -0,0 +1,2 @@
1
+ export * from './Badge';
2
+ export * from './types';
@@ -0,0 +1,50 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../theme';
3
+ import { BadgeColor, BadgeProps } from './types';
4
+ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
5
+ classes?: (Partial<import("@mui/material").BadgeUnstyledClasses> & {
6
+ colorPrimary?: string | undefined;
7
+ colorSecondary?: string | undefined;
8
+ colorError?: string | undefined;
9
+ colorInfo?: string | undefined;
10
+ colorSuccess?: string | undefined;
11
+ colorWarning?: string | undefined;
12
+ anchorOriginTopRightRectangular?: string | undefined;
13
+ anchorOriginBottomRightRectangular?: string | undefined;
14
+ anchorOriginTopLeftRectangular?: string | undefined;
15
+ anchorOriginBottomLeftRectangular?: string | undefined;
16
+ anchorOriginTopRightCircular?: string | undefined;
17
+ anchorOriginBottomRightCircular?: string | undefined;
18
+ anchorOriginTopLeftCircular?: string | undefined;
19
+ anchorOriginBottomLeftCircular?: string | undefined;
20
+ overlapRectangular?: string | undefined;
21
+ overlapCircular?: string | undefined;
22
+ }) | undefined;
23
+ color?: "primary" | "secondary" | "default" | "error" | "warning" | "info" | "success" | undefined;
24
+ overlap?: "circular" | "rectangular" | undefined;
25
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
26
+ variant?: "standard" | "dot" | undefined;
27
+ } & {
28
+ anchorOrigin?: import("@mui/material").BadgeOrigin | undefined;
29
+ components?: {
30
+ Root?: import("react").ElementType<any> | undefined;
31
+ Badge?: import("react").ElementType<any> | undefined;
32
+ } | undefined;
33
+ componentsProps?: {
34
+ root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/material").BadgeUnstyledComponentsPropsOverrides) | undefined;
35
+ badge?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/material").BadgeUnstyledComponentsPropsOverrides) | undefined;
36
+ } | undefined;
37
+ badgeContent?: import("react").ReactNode;
38
+ children?: import("react").ReactNode;
39
+ classes?: Partial<import("@mui/material").BadgeUnstyledClasses> | undefined;
40
+ invisible?: boolean | undefined;
41
+ max?: number | undefined;
42
+ showZero?: boolean | undefined;
43
+ variant?: string | undefined;
44
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
45
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
46
+ }, "components" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "componentsProps" | "invisible" | "anchorOrigin" | "overlap" | "badgeContent" | "max" | "showZero"> & {
47
+ theme?: Theme | undefined;
48
+ } & Omit<BadgeProps, "color"> & {
49
+ customColor: BadgeColor;
50
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { BadgeProps as MuiBadgeProps } from '@mui/material/Badge/Badge';
2
+ export declare type BadgeColor = 'primary' | 'grey' | 'white' | 'errorLight' | 'error' | 'success';
3
+ export declare type BadgeProps = Omit<MuiBadgeProps, 'color'> & {
4
+ color: BadgeColor;
5
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from './types';
3
+ export declare const Button: ({ children, startIcon, endIcon, loading, ...props }: ButtonProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ export * from './types';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../theme';
3
+ export declare const StyledButton: import("@emotion/styled").StyledComponent<Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "color" | "variant" | "size"> & {
4
+ color?: "primary" | "error" | "warning" | "success" | undefined;
5
+ variant?: "link" | "light" | "text" | "contained" | undefined;
6
+ size?: "large" | "medium" | undefined;
7
+ } & {
8
+ theme?: Theme | undefined;
9
+ } & {
10
+ loading?: boolean | undefined;
11
+ startIcon?: import("react").ReactNode;
12
+ endIcon?: import("react").ReactNode;
13
+ }, {}, {}>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BaseButtonProps } from '../ButtonBase';
3
+ export declare type ButtonProps = BaseButtonProps & {
4
+ loading?: boolean;
5
+ startIcon?: React.ReactNode;
6
+ endIcon?: React.ReactNode;
7
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseButtonProps } from './types';
3
+ export declare const ButtonBase: ({ children, variant, color, ...props }: BaseButtonProps) => JSX.Element;
@@ -0,0 +1,22 @@
1
+ export declare enum ButtonColors {
2
+ ERROR = "error",
3
+ SUCCESS = "success",
4
+ WARNING = "warning",
5
+ PRIMARY = "primary"
6
+ }
7
+ export declare enum ButtonVariants {
8
+ CONTAINED = "contained",
9
+ LIGHT = "light",
10
+ TEXT = "text",
11
+ LINK = "link"
12
+ }
13
+ export declare enum ButtonSizes {
14
+ MEDIUM = "medium",
15
+ LARGE = "large"
16
+ }
17
+ export declare enum ButtonStates {
18
+ DEFAULT = "default",
19
+ ACTIVE = "active",
20
+ FOCUS = "focus",
21
+ HOVER = "hover"
22
+ }
@@ -0,0 +1,3 @@
1
+ export * from './ButtonBase';
2
+ export * from './constants';
3
+ export * from './types';
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { Palette, Theme } from '../theme';
3
+ import { BaseButtonProps, ButtonColor, ButtonSize, ButtonState, ButtonVariant } from './types';
4
+ declare type StyledButtonBaseThemeProps = {
5
+ customColor?: ButtonColor;
6
+ customVariant?: ButtonVariant;
7
+ size?: ButtonSize;
8
+ theme: Theme;
9
+ };
10
+ export declare const getColor: ({ theme, customVariant, customColor, buttonState, }: StyledButtonBaseThemeProps & {
11
+ buttonState: ButtonState;
12
+ }) => string;
13
+ export declare const getBgText: ({ palette, buttonState, colorVariant, }: {
14
+ palette: Palette;
15
+ buttonState: ButtonState;
16
+ colorVariant: string;
17
+ }) => string;
18
+ export declare const getBgColor: ({ customColor, customVariant, buttonState, theme, }: StyledButtonBaseThemeProps & {
19
+ buttonState: ButtonState;
20
+ }) => string;
21
+ export declare const getButtonHeight: ({ size, }: StyledButtonBaseThemeProps) => string;
22
+ export declare const getButtonPadding: ({ size, theme, }: StyledButtonBaseThemeProps) => string;
23
+ export declare const getDisabledBgColor: ({ theme, customVariant, }: StyledButtonBaseThemeProps) => string;
24
+ export declare const StyledButtonBase: import("@emotion/styled").StyledComponent<Pick<import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps & Omit<any, keyof import("@mui/base/ButtonUnstyled").ButtonUnstyledOwnProps> & {
25
+ component?: import("react").ElementType<any> | undefined;
26
+ }, string | number | symbol> & import("react").RefAttributes<any> & {
27
+ theme?: Theme | undefined;
28
+ } & Omit<BaseButtonProps, "color" | "variant"> & {
29
+ customColor?: "primary" | "error" | "warning" | "success" | undefined;
30
+ customVariant?: "link" | "light" | "text" | "contained" | undefined;
31
+ }, {}, {}>;
32
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ButtonUnstyledProps } from '@mui/base/ButtonUnstyled';
2
+ import { ButtonColors, ButtonSizes, ButtonStates, ButtonVariants } from './constants';
3
+ export declare type ButtonColor = `${ButtonColors}`;
4
+ export declare type ButtonVariant = `${ButtonVariants}`;
5
+ export declare type ButtonSize = `${ButtonSizes}`;
6
+ export declare type ButtonState = `${ButtonStates}`;
7
+ export declare type BaseButtonProps = Omit<ButtonUnstyledProps, 'color' | 'variant' | 'size'> & {
8
+ color?: ButtonColor;
9
+ variant?: ButtonVariant;
10
+ size?: ButtonSize;
11
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxProps } from './types';
3
+ export declare const Checkbox: ({ icon, checkedIcon, indeterminateIcon, ...props }: CheckboxProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ export declare const DefaultIcon: React.FunctionComponent<SvgIconProps>;
4
+ export declare const CheckedIcon: React.FunctionComponent<SvgIconProps>;
5
+ export declare const IndeterminateIcon: React.FunctionComponent<SvgIconProps>;
@@ -0,0 +1,2 @@
1
+ export * from './Checkbox';
2
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ import { CheckboxProps } from './types';
2
+ export declare const StyledCheckbox: import("@emotion/styled").StyledComponent<import("@mui/material").CheckboxProps & {
3
+ theme?: import("..").Theme | undefined;
4
+ } & CheckboxProps, {}, {}>;
@@ -0,0 +1,2 @@
1
+ import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
2
+ export declare type CheckboxProps = Omit<MuiCheckboxProps, 'size' | 'color'>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { CircularProgressProps } from './types';
3
+ export declare const CircularProgress: ({ color, size, ...props }: CircularProgressProps) => JSX.Element;
4
+ export default CircularProgress;
@@ -0,0 +1,8 @@
1
+ export declare enum CircularProgressColors {
2
+ PRIMARY = "primary",
3
+ INVERTED = "inverted"
4
+ }
5
+ export declare enum CircularProgressSizes {
6
+ SMALL = "small",
7
+ MEDIUM = "medium"
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './CircularProgress';
2
+ export * from './types';
@@ -0,0 +1,7 @@
1
+ import { Theme } from '../theme';
2
+ import { CircularProgressProps } from './types';
3
+ export declare const StyledCircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & {
4
+ theme?: Theme | undefined;
5
+ } & Omit<CircularProgressProps, "color" | "size"> & {
6
+ customColor?: "primary" | "inverted" | undefined;
7
+ }, {}, {}>;
@@ -0,0 +1,8 @@
1
+ import { CircularProgressProps as MuiCircularProgressProps } from '@mui/material';
2
+ import { CircularProgressColors, CircularProgressSizes } from './constants';
3
+ export declare type CircularProgressColor = `${CircularProgressColors}`;
4
+ export declare type CircularProgressSize = `${CircularProgressSizes}`;
5
+ export declare type CircularProgressProps = Omit<MuiCircularProgressProps, 'color' | 'size'> & {
6
+ color?: CircularProgressColor;
7
+ size?: CircularProgressSize;
8
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FormControlLabelProps } from './types';
3
+ export declare const FormControlLabel: ({ ...props }: FormControlLabelProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './FormControlLabel';
2
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export declare const StyledFormControlLabel: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlLabelProps & {
2
+ theme?: import("..").Theme | undefined;
3
+ }, {}, {}>;
@@ -0,0 +1,2 @@
1
+ import { FormControlLabelProps as MuiFormControlLabelProps } from '@mui/material/FormControlLabel';
2
+ export declare type FormControlLabelProps = MuiFormControlLabelProps;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormHelperTextProps } from './types';
3
+ export declare const FormHelperText: React.FC<FormHelperTextProps>;
4
+ export default FormHelperText;
@@ -0,0 +1 @@
1
+ export * from './FormHelperText';
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ export declare const SuccessIcon: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
+ color?: "inherit" | "primary" | "secondary" | "disabled" | "error" | "warning" | "info" | "success" | "action" | undefined;
6
+ fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
7
+ htmlColor?: string | undefined;
8
+ inheritViewBox?: boolean | undefined;
9
+ shapeRendering?: string | undefined;
10
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
11
+ titleAccess?: string | undefined;
12
+ viewBox?: string | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "direction" | "spacing" | "clipPath" | "color" | "cursor" | "display" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "mode" | "className" | "style" | "id" | "lang" | "tabIndex" | "role" | "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" | "children" | "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" | "path" | "key" | "name" | "type" | "local" | "in" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
14
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
15
+ }, "fontSize" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
16
+ children?: import("react").ReactNode;
17
+ } & {
18
+ theme?: import("..").Theme | undefined;
19
+ }, {}, {}>;
20
+ export declare const ErrorIcon: import("@emotion/styled").StyledComponent<{
21
+ children?: import("react").ReactNode;
22
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
23
+ color?: "inherit" | "primary" | "secondary" | "disabled" | "error" | "warning" | "info" | "success" | "action" | undefined;
24
+ fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
25
+ htmlColor?: string | undefined;
26
+ inheritViewBox?: boolean | undefined;
27
+ shapeRendering?: string | undefined;
28
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
29
+ titleAccess?: string | undefined;
30
+ viewBox?: string | undefined;
31
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "direction" | "spacing" | "clipPath" | "color" | "cursor" | "display" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "mode" | "className" | "style" | "id" | "lang" | "tabIndex" | "role" | "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" | "children" | "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" | "path" | "key" | "name" | "type" | "local" | "in" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
32
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
33
+ }, "fontSize" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
34
+ children?: import("react").ReactNode;
35
+ } & {
36
+ theme?: import("..").Theme | undefined;
37
+ }, {}, {}>;
38
+ export declare const Content: import("@emotion/styled").StyledComponent<{
39
+ theme?: import("..").Theme | undefined;
40
+ as?: import("react").ElementType<any> | undefined;
41
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,6 @@
1
+ import { FormHelperTextProps as MuiFormHelperTextProps } from '@mui/material';
2
+ export declare type FormHelperTextProps = MuiFormHelperTextProps & {
3
+ success?: boolean;
4
+ error?: boolean;
5
+ };
6
+ export default FormHelperTextProps;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { GridProps } from './types';
3
+ export declare const Grid: ({ container, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, children, ...props }: GridProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Grid';
2
+ export * from './types';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledGrid: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
+ children?: import("react").ReactNode;
4
+ component?: import("react").ElementType<any> | undefined;
5
+ ref?: import("react").Ref<unknown> | undefined;
6
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "ref" | ("fontSize" | "fontWeight" | "fontFamily" | "typography" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "p" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY") | "component"> & {
10
+ theme?: import("..").Theme | undefined;
11
+ } & {
12
+ container: boolean;
13
+ }, {}, {}>;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { Breakpoint } from '@mui/material/styles';
3
+ declare type StyleCSSType<Type extends keyof React.CSSProperties> = React.CSSProperties[Type] | Partial<Record<Breakpoint, React.CSSProperties[Type]>>;
4
+ export declare type GridContainerProps = {
5
+ container?: boolean;
6
+ templateColumns?: StyleCSSType<'gridTemplateColumns'>;
7
+ templateRows?: StyleCSSType<'gridTemplateRows'>;
8
+ templateAreas?: StyleCSSType<'gridTemplateAreas'>;
9
+ columnSpacing?: StyleCSSType<'gridColumnGap'>;
10
+ rowSpacing?: StyleCSSType<'gridRowGap'>;
11
+ spacing?: StyleCSSType<'gridGap'>;
12
+ justifyItems?: StyleCSSType<'justifyItems'>;
13
+ alignItems?: StyleCSSType<'alignItems'>;
14
+ justifyContent?: StyleCSSType<'justifyContent'>;
15
+ alignContent?: StyleCSSType<'alignContent'>;
16
+ autoColumns?: StyleCSSType<'gridAutoColumns'>;
17
+ autoRows?: StyleCSSType<'gridAutoRows'>;
18
+ autoFlow?: StyleCSSType<'gridAutoFlow'>;
19
+ };
20
+ export declare type GridElementsProps = {
21
+ column?: StyleCSSType<'gridColumn'>;
22
+ row?: StyleCSSType<'gridRow'>;
23
+ area?: StyleCSSType<'gridArea'>;
24
+ justifySelf?: StyleCSSType<'justifySelf'>;
25
+ alignSelf?: StyleCSSType<'alignSelf'>;
26
+ };
27
+ export declare type GridProps = GridContainerProps & GridElementsProps & {
28
+ children?: React.ReactNode;
29
+ };
30
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseButtonProps } from '../ButtonBase';
3
+ export declare const IconButton: ({ children, ...props }: BaseButtonProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './IconButton';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../theme';
3
+ import { ButtonProps } from '../Button';
4
+ declare type StyledIconButtonThemeProps = ButtonProps & {
5
+ theme: Theme;
6
+ };
7
+ export declare const getButtonHeight: ({ size, }: StyledIconButtonThemeProps) => string;
8
+ export declare const StyledIconButton: import("@emotion/styled").StyledComponent<Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "color" | "variant" | "size"> & {
9
+ color?: "primary" | "error" | "warning" | "success" | undefined;
10
+ variant?: "link" | "light" | "text" | "contained" | undefined;
11
+ size?: "large" | "medium" | undefined;
12
+ } & {
13
+ theme?: Theme | undefined;
14
+ } & {
15
+ loading?: boolean | undefined;
16
+ startIcon?: import("react").ReactNode;
17
+ endIcon?: import("react").ReactNode;
18
+ }, {}, {}>;
19
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuProps } from '@mui/material';
3
+ export declare const Menu: ({ children, ...props }: MenuProps) => JSX.Element;