@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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TypographyProps as MuiTypographyProps } from '@mui/material/Typography';
2
3
  import { Variant } from '@mui/material/styles/createTypography';
3
4
  export declare type TypographyProps = Omit<MuiTypographyProps, 'variant'> & {
@@ -2,7 +2,12 @@ export * from './Button';
2
2
  export * from './ButtonBase';
3
3
  export * from './IconButton';
4
4
  export * from './Badge';
5
+ export * from './Checkbox';
6
+ export * from './FormControlLabel';
5
7
  export * from './Typography';
8
+ export * from './Menu';
9
+ export * from './MenuItem';
10
+ export * from './MenuList';
6
11
  export * from './theme';
7
12
  export * from './styles';
8
13
  export * from './ThemeProvider';
package/cjs/src/index.js CHANGED
@@ -14,7 +14,12 @@ __exportStar(require("./Button"), exports);
14
14
  __exportStar(require("./ButtonBase"), exports);
15
15
  __exportStar(require("./IconButton"), exports);
16
16
  __exportStar(require("./Badge"), exports);
17
+ __exportStar(require("./Checkbox"), exports);
18
+ __exportStar(require("./FormControlLabel"), exports);
17
19
  __exportStar(require("./Typography"), exports);
20
+ __exportStar(require("./Menu"), exports);
21
+ __exportStar(require("./MenuItem"), exports);
22
+ __exportStar(require("./MenuList"), exports);
18
23
  __exportStar(require("./theme"), exports);
19
24
  __exportStar(require("./styles"), exports);
20
25
  __exportStar(require("./ThemeProvider"), exports);
@@ -51,6 +51,6 @@ describe('createTheme', function () {
51
51
  });
52
52
  it('Theme has elevation params', function () {
53
53
  var theme = (0, baseTheme_1.createTheme)({ brand: constants_1.Brand.SIGN, fontsUrls: fontsUrls });
54
- expect(theme.elevation[100]).toBe('box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 1px 1px 0px #072D5740;');
54
+ expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;');
55
55
  });
56
56
  });
@@ -1,16 +1,17 @@
1
1
  import { Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
2
2
  import { TypographyThemeOptions } from './typography';
3
- import { Color } from './palette';
3
+ import { Background, Color } from './palette';
4
4
  import { FontsUrls } from './components';
5
5
  import { Brand } from './constants';
6
6
  import { Elevation } from './elevation';
7
7
  import { Shape } from './shape';
8
- export declare type Palette = Omit<MuiPalette, 'grey'> & {
8
+ export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
9
9
  red: Color;
10
10
  green: Color;
11
11
  yellow: Color;
12
12
  grey: Color;
13
13
  primary: PaletteColor & Color;
14
+ background: Background;
14
15
  };
15
16
  export declare type Theme = Omit<MuiTheme, 'shadows' | 'palette' | 'shape' | 'typography'> & {
16
17
  elevation: Elevation;
@@ -23,5 +24,5 @@ declare type CreateThemeParams = {
23
24
  options?: ThemeOptions;
24
25
  fontsUrls: FontsUrls;
25
26
  };
26
- export declare const createTheme: ({ brand, options, fontsUrls, }: CreateThemeParams) => Theme;
27
+ export declare const createTheme: (params: CreateThemeParams) => Theme;
27
28
  export {};
@@ -9,8 +9,8 @@ var components_1 = require("./components");
9
9
  var constants_1 = require("./constants");
10
10
  var elevation_1 = require("./elevation");
11
11
  var shape_1 = require("./shape");
12
- var createTheme = function (_a) {
13
- var brand = _a.brand, options = _a.options, fontsUrls = _a.fontsUrls;
12
+ var createTheme = function (params) {
13
+ var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls;
14
14
  var themeOptions = {
15
15
  typography: typography_1.typography,
16
16
  spacing: constants_1.SPACING,
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiFormHelperText: Components<Theme>['MuiFormHelperText'];
4
+ export default MuiFormHelperText;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiFormHelperText = void 0;
4
+ exports.MuiFormHelperText = {
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ margin: theme.spacing(1, 0, 0),
10
+ lineHeight: theme.typography.pxToRem(16),
11
+ '&.Mui-error': {
12
+ color: theme.palette.error.dark,
13
+ },
14
+ };
15
+ },
16
+ },
17
+ };
18
+ exports.default = exports.MuiFormHelperText;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiFormLabel: Components<Theme>['MuiFormLabel'];
4
+ export default MuiFormLabel;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiFormLabel = void 0;
4
+ exports.MuiFormLabel = {
5
+ styleOverrides: {
6
+ root: function () {
7
+ return {
8
+ position: 'relative',
9
+ transform: 'none',
10
+ };
11
+ },
12
+ },
13
+ };
14
+ exports.default = exports.MuiFormLabel;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiInputBase: Components<Theme>['MuiInputBase'];
4
+ export default MuiInputBase;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiInputBase = void 0;
4
+ exports.MuiInputBase = {
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ '&.MuiInputBase-colorSuccess + .MuiFormHelperText-root': {
10
+ color: theme.palette.green[800],
11
+ },
12
+ };
13
+ },
14
+ },
15
+ };
16
+ exports.default = exports.MuiInputBase;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiInputLabel: Components<Theme>['MuiInputLabel'];
4
+ export default MuiInputLabel;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiInputLabel = void 0;
4
+ exports.MuiInputLabel = {
5
+ defaultProps: {
6
+ shrink: true,
7
+ },
8
+ styleOverrides: {
9
+ root: function (_a) {
10
+ var theme = _a.theme;
11
+ return {
12
+ position: 'relative',
13
+ transform: 'none',
14
+ color: theme.palette.grey[700],
15
+ fontWeight: theme.typography.fontWeightMedium,
16
+ fontSize: theme.typography.pxToRem(12),
17
+ lineHeight: theme.typography.pxToRem(16),
18
+ marginBottom: theme.spacing(1),
19
+ '&.Mui-focused': {
20
+ color: theme.palette.grey[700],
21
+ },
22
+ '&.Mui-error': {
23
+ color: theme.palette.grey[700],
24
+ },
25
+ '&.Mui-disabled': {
26
+ color: theme.palette.grey[600],
27
+ },
28
+ };
29
+ },
30
+ },
31
+ };
32
+ exports.default = exports.MuiInputLabel;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiOutlinedInput: Components<Theme>['MuiOutlinedInput'];
4
+ export default MuiOutlinedInput;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiOutlinedInput = void 0;
4
+ exports.MuiOutlinedInput = {
5
+ defaultProps: {
6
+ notched: false,
7
+ },
8
+ styleOverrides: {
9
+ root: function (_a) {
10
+ var theme = _a.theme;
11
+ return {
12
+ fontSize: theme.typography.pxToRem(14),
13
+ borderRadius: theme.shape.small,
14
+ color: theme.palette.grey[900],
15
+ background: theme.palette.background.element,
16
+ '&:hover': {
17
+ // FIXME: to theme
18
+ background: '#EEF1F4',
19
+ },
20
+ '&:hover .MuiOutlinedInput-notchedOutline': {
21
+ borderColor: theme.palette.grey[300],
22
+ },
23
+ '&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
24
+ borderColor: theme.palette.background.element,
25
+ },
26
+ '&.Mui-error .MuiOutlinedInput-notchedOutline': {
27
+ borderColor: theme.palette.error.dark,
28
+ },
29
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
30
+ borderColor: theme.palette.primary[700],
31
+ },
32
+ };
33
+ },
34
+ input: function (_a) {
35
+ var theme = _a.theme;
36
+ return {
37
+ padding: theme.spacing(2.5, 2),
38
+ borderRadius: theme.shape.small,
39
+ '&:disabled': {
40
+ background: theme.palette.background.element,
41
+ },
42
+ '&::placeholder': {
43
+ opacity: 1,
44
+ color: theme.palette.grey[600],
45
+ },
46
+ };
47
+ },
48
+ inputSizeSmall: function (_a) {
49
+ var theme = _a.theme;
50
+ return {
51
+ paddingBlock: theme.spacing(2),
52
+ paddingInline: theme.spacing(1.5),
53
+ };
54
+ },
55
+ notchedOutline: function (_a) {
56
+ var theme = _a.theme;
57
+ return {
58
+ borderWidth: '2px',
59
+ borderColor: theme.palette.grey[300],
60
+ };
61
+ },
62
+ },
63
+ };
64
+ exports.default = exports.MuiOutlinedInput;
@@ -0,0 +1,21 @@
1
+ import { Components } from '@mui/material';
2
+ export declare type FontsUrls = {
3
+ bold: {
4
+ woff: string;
5
+ woff2: string;
6
+ };
7
+ light: {
8
+ woff: string;
9
+ woff2: string;
10
+ };
11
+ medium: {
12
+ woff: string;
13
+ woff2: string;
14
+ };
15
+ regular: {
16
+ woff: string;
17
+ woff2: string;
18
+ };
19
+ };
20
+ export declare const MuiTypography: Components['MuiTypography'];
21
+ export default MuiTypography;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiTypography = void 0;
4
+ exports.MuiTypography = {
5
+ variants: [
6
+ {
7
+ props: { variant: 'button' },
8
+ style: {
9
+ textTransform: 'capitalize',
10
+ },
11
+ },
12
+ ],
13
+ defaultProps: {
14
+ // TODO: необходимо кастомизировать типы Components['MuiTypography']
15
+ variantMapping: {
16
+ link: 'a',
17
+ code: 'code',
18
+ },
19
+ },
20
+ };
21
+ exports.default = exports.MuiTypography;
@@ -1,4 +1,5 @@
1
1
  import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
2
3
  export declare type FontsUrls = {
3
4
  bold: {
4
5
  woff: string;
@@ -17,4 +18,4 @@ export declare type FontsUrls = {
17
18
  woff2: string;
18
19
  };
19
20
  };
20
- export declare const getComponents: (fontUrls: FontsUrls) => Components;
21
+ export declare const getComponents: (fontUrls: FontsUrls) => Components<Theme>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getComponents = void 0;
4
+ var MuiInputBase_1 = require("./MuiInputBase");
5
+ var MuiFormHelperText_1 = require("./MuiFormHelperText");
6
+ var MuiFormLabel_1 = require("./MuiFormLabel");
7
+ var MuiInputLabel_1 = require("./MuiInputLabel");
8
+ var MuiOutlinedInput_1 = require("./MuiOutlinedInput");
9
+ var MuiTypography_1 = require("./MuiTypography");
10
+ var getMuiCssBaseline = function (fontUrls) { return ({
11
+ 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 "),
12
+ }); };
13
+ var MuiCheckbox = {
14
+ defaultProps: {
15
+ disableRipple: true,
16
+ },
17
+ };
18
+ var MuiMenu = {
19
+ defaultProps: {
20
+ autoFocus: false,
21
+ },
22
+ styleOverrides: {
23
+ paper: function (_a) {
24
+ var theme = _a.theme;
25
+ return {
26
+ marginTop: theme.spacing(2),
27
+ '&.MuiPaper-root': {
28
+ borderRadius: theme.shape.small,
29
+ boxShadow: theme.elevation[200],
30
+ },
31
+ };
32
+ },
33
+ list: function (_a) {
34
+ var theme = _a.theme;
35
+ return {
36
+ padding: theme.spacing(1, 0),
37
+ };
38
+ },
39
+ },
40
+ };
41
+ var MuiMenuItem = {
42
+ styleOverrides: {
43
+ root: function (_a) {
44
+ var theme = _a.theme;
45
+ return {
46
+ '&:hover': {
47
+ backgroundColor: theme.palette.background.elementHover,
48
+ },
49
+ };
50
+ },
51
+ },
52
+ };
53
+ var getComponents = function (fontUrls) { return ({
54
+ MuiCssBaseline: getMuiCssBaseline(fontUrls),
55
+ MuiTypography: MuiTypography_1.MuiTypography,
56
+ MuiInputBase: MuiInputBase_1.MuiInputBase,
57
+ MuiInputLabel: MuiInputLabel_1.MuiInputLabel,
58
+ MuiOutlinedInput: MuiOutlinedInput_1.MuiOutlinedInput,
59
+ MuiFormLabel: MuiFormLabel_1.MuiFormLabel,
60
+ MuiFormHelperText: MuiFormHelperText_1.MuiFormHelperText,
61
+ MuiCheckbox: MuiCheckbox,
62
+ MuiMenu: MuiMenu,
63
+ MuiMenuItem: MuiMenuItem,
64
+ }); };
65
+ exports.getComponents = getComponents;
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./components"), exports);
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.elevation = void 0;
4
4
  exports.elevation = {
5
- 100: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 1px 1px 0px #072D5740;',
6
- 200: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 3px 5px 0px #072D5733;',
7
- 300: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 8px 12px 0px #072D5726;',
8
- 400: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 10px 18px 0px #072D5726;',
9
- 500: 'box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 18px 28px 0px #072D5726;',
5
+ 100: '0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;',
6
+ 200: '0px 0px 1px 0px #072D574F, 0px 3px 5px 0px #072D5733;',
7
+ 300: '0px 0px 1px 0px #072D574F, 0px 8px 12px 0px #072D5726;',
8
+ 400: '0px 0px 1px 0px #072D574F, 0px 10px 18px 0px #072D5726;',
9
+ 500: '0px 0px 1px 0px #072D574F, 0px 18px 28px 0px #072D5726;',
10
10
  };
@@ -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
  };
@@ -5,7 +5,7 @@ var HTML_FONT_SIZE = 14;
5
5
  // Т.к. нет досутпа к теме, написал функцию для конвертации px в rem
6
6
  var pxToRem = function (fontSize, htmlFontSize) {
7
7
  if (htmlFontSize === void 0) { htmlFontSize = HTML_FONT_SIZE; }
8
- return fontSize / htmlFontSize + "rem";
8
+ return "".concat(fontSize / htmlFontSize, "rem");
9
9
  };
10
10
  exports.pxToRem = pxToRem;
11
11
  exports.typography = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BadgeProps } from './types';
2
3
  declare const Badge: ({ children, color, ...props }: BadgeProps) => JSX.Element;
3
4
  export default Badge;
@@ -23,7 +23,7 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
23
23
  color?: "primary" | "secondary" | "default" | "error" | "warning" | "info" | "success" | undefined;
24
24
  overlap?: "circular" | "rectangular" | undefined;
25
25
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
26
- variant?: "dot" | "standard" | undefined;
26
+ variant?: "standard" | "dot" | undefined;
27
27
  } & {
28
28
  anchorOrigin?: import("@mui/material").BadgeOrigin | undefined;
29
29
  components?: {
@@ -43,7 +43,7 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
43
43
  variant?: string | undefined;
44
44
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
45
45
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
46
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "variant" | "components" | "componentsProps" | "invisible" | "overlap" | "anchorOrigin" | "badgeContent" | "max" | "showZero"> & {
46
+ }, "components" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "componentsProps" | "invisible" | "anchorOrigin" | "overlap" | "badgeContent" | "max" | "showZero"> & {
47
47
  theme?: Theme | undefined;
48
48
  } & Omit<BadgeProps, "color"> & {
49
49
  customColor: BadgeColor;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from './types';
2
3
  export declare const Button: ({ children, startIcon, endIcon, loading, ...props }: ButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BaseButtonProps } from './types';
2
3
  export declare const ButtonBase: ({ children, variant, color, ...props }: BaseButtonProps) => JSX.Element;
@@ -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,29 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { StyledCheckbox } from './styled';
25
+ import { CheckedIcon, DefaultIcon, IndeterminateIcon } from './icons';
26
+ export var Checkbox = function (_a) {
27
+ var _b = _a.icon, icon = _b === void 0 ? _jsx(DefaultIcon, {}, void 0) : _b, _c = _a.checkedIcon, checkedIcon = _c === void 0 ? _jsx(CheckedIcon, {}, void 0) : _c, _d = _a.indeterminateIcon, indeterminateIcon = _d === void 0 ? _jsx(IndeterminateIcon, {}, void 0) : _d, props = __rest(_a, ["icon", "checkedIcon", "indeterminateIcon"]);
28
+ return (_jsx(StyledCheckbox, __assign({ icon: icon, checkedIcon: checkedIcon, indeterminateIcon: indeterminateIcon }, props), void 0));
29
+ };
@@ -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,36 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { SvgIcon } from '@mui/material';
25
+ export var DefaultIcon = function (_a) {
26
+ var props = __rest(_a, []);
27
+ return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("path", { d: "M0 3C0 1.34315 1.34315 0 3 0H11C12.6569 0 14 1.34315 14 3V11C14 12.6569 12.6569 14 11 14H3C1.34315 14 0 12.6569 0 11V3Z" }, void 0), _jsx("path", { className: "MuiSvgIcon-border", fillRule: "evenodd", clipRule: "evenodd", d: "M11 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V3C12 2.44772 11.5523 2 11 2ZM3 0C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V3C14 1.34315 12.6569 0 11 0H3Z" }, void 0)] }), void 0));
28
+ };
29
+ export var CheckedIcon = function (_a) {
30
+ var props = __rest(_a, []);
31
+ return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }, void 0), _jsx("path", { className: "MuiSvgIcon-mark", fillRule: "evenodd", clipRule: "evenodd", d: "M4.71402 6.30066C4.62206 6.20534 4.51205 6.12931 4.39042 6.07701C4.26879 6.0247 4.13797 5.99717 4.0056 5.99602C3.87323 5.99487 3.74195 6.02012 3.61943 6.0703C3.49691 6.12048 3.3856 6.19458 3.292 6.28829C3.19839 6.38199 3.12437 6.49342 3.07424 6.61607C3.02411 6.73872 2.99889 6.87013 3.00004 7.00265C3.00119 7.13516 3.02869 7.26612 3.08094 7.38787C3.13319 7.50963 3.20914 7.61976 3.30435 7.71182L5.29823 9.7078C5.48518 9.8949 5.73871 10 6.00306 10C6.26741 10 6.52094 9.8949 6.7079 9.7078L10.6956 5.71584C10.7909 5.62377 10.8668 5.51365 10.9191 5.39189C10.9713 5.27013 10.9988 5.13918 11 5.00666C11.0011 4.87415 10.9759 4.74274 10.9258 4.62009C10.8756 4.49744 10.8016 4.38601 10.708 4.29231C10.6144 4.1986 10.5031 4.1245 10.3806 4.07432C10.258 4.02414 10.1268 3.99889 9.9944 4.00004C9.86203 4.00119 9.73121 4.02872 9.60958 4.08102C9.48795 4.13333 9.37794 4.20936 9.28598 4.30468L6.00306 7.59106L4.71402 6.30066V6.30066Z" }, void 0)] }), void 0));
32
+ };
33
+ export var IndeterminateIcon = function (_a) {
34
+ var props = __rest(_a, []);
35
+ return (_jsxs(SvgIcon, __assign({ viewBox: "0 0 14 14" }, props, { children: [_jsx("rect", { width: "14", height: "14", rx: "3" }, void 0), _jsx("path", { className: "MuiSvgIcon-mark", d: "M10 6H4C3.44772 6 3 6.44772 3 7C3 7.55228 3.44772 8 4 8H10C10.5523 8 11 7.55228 11 7C11 6.44772 10.5523 6 10 6Z" }, void 0)] }), void 0));
36
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Checkbox';
2
+ export * from './types';
@@ -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,32 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { Checkbox } from '@mui/material';
6
+ import { styled } from '../styles';
7
+ export var StyledCheckbox = styled(Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"], ["\n padding: 5px;\n border-radius: unset;\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.palette.background.element;
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.palette.grey[100];
13
+ }, function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.palette.grey[300];
16
+ }, function (_a) {
17
+ var theme = _a.theme;
18
+ return theme.palette.grey[200];
19
+ }, function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.palette.primary.main;
22
+ }, function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.palette.primary[700];
25
+ }, function (_a) {
26
+ var theme = _a.theme;
27
+ return theme.palette.grey[500];
28
+ }, function (_a) {
29
+ var theme = _a.theme;
30
+ return theme.palette.common.white;
31
+ });
32
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
2
+ export declare type CheckboxProps = Omit<MuiCheckboxProps, 'size' | 'color'>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CircularProgressProps } from './types';
2
3
  export declare const CircularProgress: ({ color, size, ...props }: CircularProgressProps) => JSX.Element;
3
4
  export default CircularProgress;