@astral/ui 0.1.1 → 0.2.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 (293) hide show
  1. package/esm/src/Badge/Badge.d.ts +1 -0
  2. package/esm/src/Badge/styled.d.ts +2 -2
  3. package/esm/src/Button/Button.d.ts +1 -0
  4. package/esm/src/Button/styled.js +4 -1
  5. package/esm/src/ButtonBase/ButtonBase.d.ts +1 -0
  6. package/esm/src/ButtonBase/styled.d.ts +1 -6
  7. package/esm/src/ButtonBase/styled.js +124 -118
  8. package/esm/src/Checkbox/Checkbox.d.ts +3 -0
  9. package/esm/src/Checkbox/Checkbox.js +29 -0
  10. package/esm/src/Checkbox/icons.d.ts +5 -0
  11. package/esm/src/Checkbox/icons.js +36 -0
  12. package/esm/src/Checkbox/index.d.ts +2 -0
  13. package/esm/src/Checkbox/index.js +2 -0
  14. package/esm/src/Checkbox/styled.d.ts +4 -0
  15. package/esm/src/Checkbox/styled.js +32 -0
  16. package/esm/src/Checkbox/types.d.ts +2 -0
  17. package/{cjs/src/theme/__tests__/BaseTheme.test.d.ts → esm/src/Checkbox/types.js} +0 -0
  18. package/esm/src/CircularProgress/CircularProgress.d.ts +1 -0
  19. package/esm/src/CircularProgress/CircularProgress.js +2 -1
  20. package/esm/src/CircularProgress/constants.d.ts +1 -2
  21. package/esm/src/CircularProgress/constants.js +0 -1
  22. package/esm/src/CircularProgress/styled.d.ts +0 -1
  23. package/esm/src/CircularProgress/styled.js +3 -9
  24. package/esm/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  25. package/esm/src/FormControlLabel/FormControlLabel.js +28 -0
  26. package/esm/src/FormControlLabel/index.d.ts +2 -0
  27. package/esm/src/FormControlLabel/index.js +2 -0
  28. package/esm/src/FormControlLabel/styled.d.ts +3 -0
  29. package/esm/src/FormControlLabel/styled.js +11 -0
  30. package/esm/src/FormControlLabel/types.d.ts +2 -0
  31. package/esm/src/FormControlLabel/types.js +1 -0
  32. package/esm/src/FormHelperText/FormHelperText.d.ts +4 -0
  33. package/esm/src/FormHelperText/FormHelperText.js +20 -0
  34. package/esm/src/FormHelperText/index.d.ts +1 -0
  35. package/esm/src/FormHelperText/index.js +1 -0
  36. package/esm/src/FormHelperText/styled.d.ts +41 -0
  37. package/esm/src/FormHelperText/styled.js +11 -0
  38. package/esm/src/FormHelperText/types.d.ts +6 -0
  39. package/esm/src/FormHelperText/types.js +1 -0
  40. package/esm/src/GlobalStyles/GlobalStyles.d.ts +3 -0
  41. package/esm/src/GlobalStyles/GlobalStyles.js +35 -0
  42. package/esm/src/GlobalStyles/index.d.ts +1 -0
  43. package/esm/src/GlobalStyles/index.js +1 -0
  44. package/esm/src/Grid/Grid.d.ts +3 -0
  45. package/esm/src/Grid/Grid.js +28 -0
  46. package/esm/src/Grid/index.d.ts +2 -0
  47. package/esm/src/Grid/index.js +2 -0
  48. package/esm/src/Grid/styled.d.ts +13 -0
  49. package/esm/src/Grid/styled.js +11 -0
  50. package/esm/src/Grid/types.d.ts +30 -0
  51. package/esm/src/Grid/types.js +1 -0
  52. package/esm/src/IconButton/IconButton.d.ts +1 -0
  53. package/esm/src/Menu/Menu.d.ts +3 -0
  54. package/esm/src/Menu/Menu.js +28 -0
  55. package/esm/src/Menu/index.d.ts +1 -0
  56. package/esm/src/Menu/index.js +1 -0
  57. package/esm/src/MenuItem/MenuItem.d.ts +3 -0
  58. package/esm/src/MenuItem/MenuItem.js +28 -0
  59. package/esm/src/MenuItem/index.d.ts +1 -0
  60. package/esm/src/MenuItem/index.js +1 -0
  61. package/esm/src/MenuList/MenuList.d.ts +3 -0
  62. package/esm/src/MenuList/MenuList.js +28 -0
  63. package/esm/src/MenuList/index.d.ts +2 -0
  64. package/esm/src/MenuList/index.js +2 -0
  65. package/esm/src/MenuList/styled.d.ts +20 -0
  66. package/esm/src/MenuList/styled.js +17 -0
  67. package/esm/src/MenuList/types.d.ts +2 -0
  68. package/esm/src/MenuList/types.js +1 -0
  69. package/esm/src/Tag/Tag.d.ts +3 -0
  70. package/esm/src/Tag/Tag.js +28 -0
  71. package/esm/src/Tag/constants.d.ts +21 -0
  72. package/esm/src/Tag/constants.js +25 -0
  73. package/esm/src/Tag/index.d.ts +2 -0
  74. package/esm/src/Tag/index.js +2 -0
  75. package/esm/src/Tag/styled.d.ts +26 -0
  76. package/esm/src/Tag/styled.js +117 -0
  77. package/esm/src/Tag/types.d.ts +12 -0
  78. package/esm/src/Tag/types.js +1 -0
  79. package/esm/src/TextField/TextField.d.ts +4 -0
  80. package/esm/src/TextField/TextField.js +46 -0
  81. package/esm/src/TextField/index.d.ts +2 -0
  82. package/esm/src/TextField/index.js +2 -0
  83. package/esm/src/TextField/types.d.ts +6 -0
  84. package/esm/src/TextField/types.js +1 -0
  85. package/esm/src/ThemeProvider/ThemeProvider.js +3 -2
  86. package/esm/src/Typography/Typography.d.ts +1 -0
  87. package/esm/src/index.d.ts +6 -0
  88. package/esm/src/index.js +6 -0
  89. package/esm/src/theme/__tests__/BaseTheme.test.js +1 -1
  90. package/esm/src/theme/baseTheme.d.ts +4 -3
  91. package/esm/src/theme/baseTheme.js +2 -2
  92. package/esm/src/theme/components/MuiFormHelperText.d.ts +4 -0
  93. package/esm/src/theme/components/MuiFormHelperText.js +15 -0
  94. package/esm/src/theme/components/MuiFormLabel.d.ts +4 -0
  95. package/esm/src/theme/components/MuiFormLabel.js +11 -0
  96. package/esm/src/theme/components/MuiInputBase.d.ts +4 -0
  97. package/esm/src/theme/components/MuiInputBase.js +13 -0
  98. package/esm/src/theme/components/MuiInputLabel.d.ts +4 -0
  99. package/esm/src/theme/components/MuiInputLabel.js +29 -0
  100. package/esm/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  101. package/esm/src/theme/components/MuiOutlinedInput.js +61 -0
  102. package/esm/src/theme/components/MuiTypography.d.ts +21 -0
  103. package/esm/src/theme/components/MuiTypography.js +18 -0
  104. package/esm/src/theme/{components.d.ts → components/components.d.ts} +2 -1
  105. package/esm/src/theme/components/components.js +61 -0
  106. package/esm/src/theme/components/index.d.ts +1 -0
  107. package/esm/src/theme/components/index.js +1 -0
  108. package/esm/src/theme/elevation.js +5 -5
  109. package/esm/src/theme/hooks/index.d.ts +1 -0
  110. package/esm/src/theme/hooks/index.js +1 -0
  111. package/esm/src/theme/hooks/useTheme/index.d.ts +2 -0
  112. package/esm/src/theme/hooks/useTheme/index.js +2 -0
  113. package/esm/src/theme/index.d.ts +1 -0
  114. package/esm/src/theme/index.js +1 -0
  115. package/esm/src/theme/palette/palette.d.ts +1 -1
  116. package/esm/src/theme/typography.js +1 -1
  117. package/{cjs → node}/index.d.ts +0 -0
  118. package/{cjs → node}/index.js +0 -0
  119. package/{cjs → node}/src/Badge/Badge.d.ts +1 -0
  120. package/{cjs → node}/src/Badge/Badge.js +0 -0
  121. package/{cjs → node}/src/Badge/index.d.ts +0 -0
  122. package/{cjs → node}/src/Badge/index.js +0 -0
  123. package/{cjs → node}/src/Badge/styled.d.ts +2 -2
  124. package/{cjs → node}/src/Badge/styled.js +0 -0
  125. package/{cjs → node}/src/Badge/types.d.ts +0 -0
  126. package/{cjs → node}/src/Badge/types.js +0 -0
  127. package/{cjs → node}/src/Button/Button.d.ts +1 -0
  128. package/{cjs → node}/src/Button/Button.js +0 -0
  129. package/{cjs → node}/src/Button/index.d.ts +0 -0
  130. package/{cjs → node}/src/Button/index.js +0 -0
  131. package/{cjs → node}/src/Button/styled.d.ts +0 -0
  132. package/{cjs → node}/src/Button/styled.js +4 -1
  133. package/{cjs → node}/src/Button/types.d.ts +0 -0
  134. package/{cjs → node}/src/Button/types.js +0 -0
  135. package/{cjs → node}/src/ButtonBase/ButtonBase.d.ts +1 -0
  136. package/{cjs → node}/src/ButtonBase/ButtonBase.js +0 -0
  137. package/{cjs → node}/src/ButtonBase/constants.d.ts +0 -0
  138. package/{cjs → node}/src/ButtonBase/constants.js +0 -0
  139. package/{cjs → node}/src/ButtonBase/index.d.ts +0 -0
  140. package/{cjs → node}/src/ButtonBase/index.js +0 -0
  141. package/{cjs → node}/src/ButtonBase/styled.d.ts +1 -6
  142. package/node/src/ButtonBase/styled.js +229 -0
  143. package/{cjs → node}/src/ButtonBase/types.d.ts +0 -0
  144. package/{cjs → node}/src/ButtonBase/types.js +0 -0
  145. package/node/src/Checkbox/Checkbox.d.ts +3 -0
  146. package/node/src/Checkbox/Checkbox.js +33 -0
  147. package/node/src/Checkbox/icons.d.ts +5 -0
  148. package/node/src/Checkbox/icons.js +42 -0
  149. package/node/src/Checkbox/index.d.ts +2 -0
  150. package/node/src/Checkbox/index.js +14 -0
  151. package/node/src/Checkbox/styled.d.ts +4 -0
  152. package/node/src/Checkbox/styled.js +35 -0
  153. package/node/src/Checkbox/types.d.ts +2 -0
  154. package/{cjs/src/CircularProgress → node/src/Checkbox}/types.js +0 -0
  155. package/{cjs → node}/src/CircularProgress/CircularProgress.d.ts +1 -0
  156. package/{cjs → node}/src/CircularProgress/CircularProgress.js +2 -1
  157. package/{cjs → node}/src/CircularProgress/constants.d.ts +1 -2
  158. package/{cjs → node}/src/CircularProgress/constants.js +0 -1
  159. package/{cjs → node}/src/CircularProgress/index.d.ts +0 -0
  160. package/{cjs → node}/src/CircularProgress/index.js +0 -0
  161. package/{cjs → node}/src/CircularProgress/styled.d.ts +0 -1
  162. package/{cjs → node}/src/CircularProgress/styled.js +2 -8
  163. package/{cjs → node}/src/CircularProgress/types.d.ts +0 -0
  164. package/{cjs/src/styles/styled → node/src/CircularProgress}/types.js +0 -0
  165. package/node/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  166. package/node/src/FormControlLabel/FormControlLabel.js +32 -0
  167. package/node/src/FormControlLabel/index.d.ts +2 -0
  168. package/node/src/FormControlLabel/index.js +14 -0
  169. package/node/src/FormControlLabel/styled.d.ts +3 -0
  170. package/node/src/FormControlLabel/styled.js +14 -0
  171. package/node/src/FormControlLabel/types.d.ts +2 -0
  172. package/node/src/FormControlLabel/types.js +2 -0
  173. package/node/src/FormHelperText/FormHelperText.d.ts +4 -0
  174. package/node/src/FormHelperText/FormHelperText.js +24 -0
  175. package/node/src/FormHelperText/index.d.ts +1 -0
  176. package/node/src/FormHelperText/index.js +13 -0
  177. package/node/src/FormHelperText/styled.d.ts +41 -0
  178. package/node/src/FormHelperText/styled.js +14 -0
  179. package/node/src/FormHelperText/types.d.ts +6 -0
  180. package/node/src/FormHelperText/types.js +2 -0
  181. package/node/src/GlobalStyles/GlobalStyles.d.ts +3 -0
  182. package/node/src/GlobalStyles/GlobalStyles.js +39 -0
  183. package/node/src/GlobalStyles/index.d.ts +1 -0
  184. package/node/src/GlobalStyles/index.js +13 -0
  185. package/node/src/Grid/Grid.d.ts +3 -0
  186. package/node/src/Grid/Grid.js +32 -0
  187. package/node/src/Grid/index.d.ts +2 -0
  188. package/node/src/Grid/index.js +14 -0
  189. package/node/src/Grid/styled.d.ts +13 -0
  190. package/node/src/Grid/styled.js +14 -0
  191. package/node/src/Grid/types.d.ts +30 -0
  192. package/node/src/Grid/types.js +2 -0
  193. package/{cjs → node}/src/IconButton/IconButton.d.ts +1 -0
  194. package/{cjs → node}/src/IconButton/IconButton.js +0 -0
  195. package/{cjs → node}/src/IconButton/index.d.ts +0 -0
  196. package/{cjs → node}/src/IconButton/index.js +0 -0
  197. package/{cjs → node}/src/IconButton/styled.d.ts +0 -0
  198. package/{cjs → node}/src/IconButton/styled.js +0 -0
  199. package/node/src/Menu/Menu.d.ts +3 -0
  200. package/node/src/Menu/Menu.js +32 -0
  201. package/node/src/Menu/index.d.ts +1 -0
  202. package/node/src/Menu/index.js +13 -0
  203. package/node/src/MenuItem/MenuItem.d.ts +3 -0
  204. package/node/src/MenuItem/MenuItem.js +32 -0
  205. package/node/src/MenuItem/index.d.ts +1 -0
  206. package/node/src/MenuItem/index.js +13 -0
  207. package/node/src/MenuList/MenuList.d.ts +3 -0
  208. package/node/src/MenuList/MenuList.js +32 -0
  209. package/node/src/MenuList/index.d.ts +2 -0
  210. package/node/src/MenuList/index.js +14 -0
  211. package/node/src/MenuList/styled.d.ts +20 -0
  212. package/node/src/MenuList/styled.js +20 -0
  213. package/node/src/MenuList/types.d.ts +2 -0
  214. package/node/src/MenuList/types.js +2 -0
  215. package/node/src/Tag/Tag.d.ts +3 -0
  216. package/node/src/Tag/Tag.js +32 -0
  217. package/node/src/Tag/constants.d.ts +21 -0
  218. package/node/src/Tag/constants.js +28 -0
  219. package/node/src/Tag/index.d.ts +2 -0
  220. package/node/src/Tag/index.js +14 -0
  221. package/node/src/Tag/styled.d.ts +26 -0
  222. package/node/src/Tag/styled.js +120 -0
  223. package/node/src/Tag/types.d.ts +12 -0
  224. package/node/src/Tag/types.js +2 -0
  225. package/node/src/TextField/TextField.d.ts +4 -0
  226. package/node/src/TextField/TextField.js +53 -0
  227. package/node/src/TextField/index.d.ts +2 -0
  228. package/node/src/TextField/index.js +14 -0
  229. package/node/src/TextField/types.d.ts +6 -0
  230. package/node/src/TextField/types.js +2 -0
  231. package/{cjs → node}/src/ThemeProvider/ThemeProvider.d.ts +0 -0
  232. package/{cjs → node}/src/ThemeProvider/ThemeProvider.js +2 -1
  233. package/{cjs → node}/src/ThemeProvider/index.d.ts +0 -0
  234. package/{cjs → node}/src/ThemeProvider/index.js +0 -0
  235. package/{cjs → node}/src/Typography/Typography.d.ts +1 -0
  236. package/{cjs → node}/src/Typography/Typography.js +0 -0
  237. package/{cjs → node}/src/Typography/index.d.ts +0 -0
  238. package/{cjs → node}/src/Typography/index.js +0 -0
  239. package/{cjs → node}/src/index.d.ts +6 -0
  240. package/{cjs → node}/src/index.js +6 -0
  241. package/{cjs → node}/src/styles/index.d.ts +0 -0
  242. package/{cjs → node}/src/styles/index.js +0 -0
  243. package/{cjs → node}/src/styles/styled/index.d.ts +0 -0
  244. package/{cjs → node}/src/styles/styled/index.js +0 -0
  245. package/{cjs → node}/src/styles/styled/styled.d.ts +0 -0
  246. package/{cjs → node}/src/styles/styled/styled.js +0 -0
  247. package/{cjs → node}/src/styles/styled/types.d.ts +0 -0
  248. package/node/src/styles/styled/types.js +2 -0
  249. package/node/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
  250. package/{cjs → node}/src/theme/__tests__/BaseTheme.test.js +1 -1
  251. package/{cjs → node}/src/theme/baseTheme.d.ts +4 -3
  252. package/{cjs → node}/src/theme/baseTheme.js +2 -2
  253. package/node/src/theme/components/MuiFormHelperText.d.ts +4 -0
  254. package/node/src/theme/components/MuiFormHelperText.js +18 -0
  255. package/node/src/theme/components/MuiFormLabel.d.ts +4 -0
  256. package/node/src/theme/components/MuiFormLabel.js +14 -0
  257. package/node/src/theme/components/MuiInputBase.d.ts +4 -0
  258. package/node/src/theme/components/MuiInputBase.js +16 -0
  259. package/node/src/theme/components/MuiInputLabel.d.ts +4 -0
  260. package/node/src/theme/components/MuiInputLabel.js +32 -0
  261. package/node/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  262. package/node/src/theme/components/MuiOutlinedInput.js +64 -0
  263. package/node/src/theme/components/MuiTypography.d.ts +21 -0
  264. package/node/src/theme/components/MuiTypography.js +21 -0
  265. package/{cjs/src/theme → node/src/theme/components}/components.d.ts +2 -1
  266. package/node/src/theme/components/components.js +65 -0
  267. package/node/src/theme/components/index.d.ts +1 -0
  268. package/node/src/theme/components/index.js +13 -0
  269. package/{cjs → node}/src/theme/constants.d.ts +0 -0
  270. package/{cjs → node}/src/theme/constants.js +0 -0
  271. package/{cjs → node}/src/theme/elevation.d.ts +0 -0
  272. package/node/src/theme/elevation.js +10 -0
  273. package/node/src/theme/hooks/index.d.ts +1 -0
  274. package/node/src/theme/hooks/index.js +13 -0
  275. package/node/src/theme/hooks/useTheme/index.d.ts +2 -0
  276. package/node/src/theme/hooks/useTheme/index.js +6 -0
  277. package/{cjs → node}/src/theme/index.d.ts +1 -0
  278. package/{cjs → node}/src/theme/index.js +1 -0
  279. package/{cjs → node}/src/theme/palette/brandPalette.d.ts +0 -0
  280. package/{cjs → node}/src/theme/palette/brandPalette.js +0 -0
  281. package/{cjs → node}/src/theme/palette/index.d.ts +0 -0
  282. package/{cjs → node}/src/theme/palette/index.js +0 -0
  283. package/{cjs → node}/src/theme/palette/palette.d.ts +1 -1
  284. package/{cjs → node}/src/theme/palette/palette.js +0 -0
  285. package/{cjs → node}/src/theme/shape.d.ts +0 -0
  286. package/{cjs → node}/src/theme/shape.js +0 -0
  287. package/{cjs → node}/src/theme/typography.d.ts +0 -0
  288. package/{cjs → node}/src/theme/typography.js +1 -1
  289. package/package.json +3 -2
  290. package/cjs/src/ButtonBase/styled.js +0 -224
  291. package/cjs/src/theme/components.js +0 -28
  292. package/cjs/src/theme/elevation.js +0 -10
  293. package/esm/src/theme/components.js +0 -24
@@ -0,0 +1,117 @@
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
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ import { Chip } from '@mui/material';
17
+ import { styled } from '../styles';
18
+ import { TagColors, TagStates } from './constants';
19
+ var getShape = function (_a) {
20
+ var theme = _a.theme, rounded = _a.rounded;
21
+ if (rounded)
22
+ return '100px';
23
+ return theme.shape.small;
24
+ };
25
+ var getDeleteIconBorderRadius = function (_a) {
26
+ var theme = _a.theme, rounded = _a.rounded;
27
+ if (rounded)
28
+ return '100px';
29
+ return "0 ".concat(theme.shape.small, " ").concat(theme.shape.small, " 0");
30
+ };
31
+ var getBgColor = function (_a) {
32
+ var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant;
33
+ if (customColor === TagColors.GREY) {
34
+ return theme.palette.grey[100];
35
+ }
36
+ var backgroundColorVariants = {
37
+ contained: {
38
+ primary: theme.palette.primary.main,
39
+ error: theme.palette.red[800],
40
+ success: theme.palette.green[800],
41
+ warning: theme.palette.yellow[800],
42
+ default: theme.palette.background.element,
43
+ },
44
+ light: {
45
+ primary: theme.palette.primary[100],
46
+ error: theme.palette.red[100],
47
+ success: theme.palette.green[100],
48
+ warning: theme.palette.yellow[100],
49
+ default: theme.palette.background.element,
50
+ },
51
+ };
52
+ if (!customVariant) {
53
+ return backgroundColorVariants.contained.primary;
54
+ }
55
+ if (customVariant && customColor) {
56
+ return backgroundColorVariants[customVariant][customColor];
57
+ }
58
+ return theme.palette.background.element;
59
+ };
60
+ var getColor = function (_a) {
61
+ var theme = _a.theme, customColor = _a.customColor, customVariant = _a.customVariant;
62
+ var textColorVariants = {
63
+ contained: {
64
+ primary: theme.palette.primary.contrastText,
65
+ error: theme.palette.error.contrastText,
66
+ success: theme.palette.warning.contrastText,
67
+ warning: theme.palette.success.contrastText,
68
+ default: theme.palette.text.primary,
69
+ },
70
+ light: {
71
+ primary: theme.palette.primary.main,
72
+ error: theme.palette.red[800],
73
+ success: theme.palette.green[800],
74
+ warning: theme.palette.yellow[800],
75
+ default: theme.palette.text.primary,
76
+ },
77
+ };
78
+ if (!customColor) {
79
+ return textColorVariants.contained.primary;
80
+ }
81
+ if (customVariant && customColor) {
82
+ return textColorVariants[customVariant][customColor];
83
+ }
84
+ return theme.palette.text.primary;
85
+ };
86
+ var getTagLabelPadding = function (_a) {
87
+ var theme = _a.theme, rounded = _a.rounded;
88
+ if (rounded)
89
+ return theme.spacing(0, 2);
90
+ return theme.spacing(0, 1);
91
+ };
92
+ var getDeleteIconBgColor = function (_a) {
93
+ var theme = _a.theme, iconState = _a.iconState;
94
+ var bgColorDeleteIcon = {
95
+ default: 'transparent',
96
+ hover: theme.palette.red[100],
97
+ active: theme.palette.red[200],
98
+ };
99
+ if (iconState) {
100
+ return bgColorDeleteIcon[iconState];
101
+ }
102
+ return 'transparent';
103
+ };
104
+ export var StyledTag = styled(Chip)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n user-select: none;\n font-size: 14px;\n height: 20px;\n border-radius: ", ";\n background-color: ", ";\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n &:active {\n color: ", ";\n }\n }\n .MuiChip-deleteIcon {\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: ", ";\n\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n &:active {\n background: ", ";\n }\n }\n .MuiChip-avatar {\n margin: 2px;\n width: 16px;\n height: 16px;\n }\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n user-select: none;\n font-size: 14px;\n height: 20px;\n border-radius: ", ";\n background-color: ", ";\n &:hover {\n background-color: ", ";\n color: ", ";\n }\n &:active {\n background-color: ", ";\n color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n &:active {\n color: ", ";\n }\n }\n .MuiChip-deleteIcon {\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: ", ";\n\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n &:active {\n background: ", ";\n }\n }\n .MuiChip-avatar {\n margin: 2px;\n width: 16px;\n height: 16px;\n }\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) { return getShape(__assign({}, props)); }, function (props) {
105
+ return getBgColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT }));
106
+ }, function (props) {
107
+ return getBgColor(__assign(__assign({}, props), { tagState: TagStates.HOVER }));
108
+ }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
109
+ return getBgColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE }));
110
+ }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (props) {
111
+ return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.DEFAULT }));
112
+ }, function (props) {
113
+ return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.HOVER }));
114
+ }, function (props) {
115
+ return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.ACTIVE }));
116
+ });
117
+ var templateObject_1;
@@ -0,0 +1,12 @@
1
+ import { ChipProps as MuiTagProps } from '@mui/material/Chip/Chip';
2
+ import { TagColors, TagSizes, TagStates, TagVariants } from './constants';
3
+ export declare type TagColor = `${TagColors}`;
4
+ export declare type TagVariant = `${TagVariants}`;
5
+ export declare type TagSize = `${TagSizes}`;
6
+ export declare type TagState = `${TagStates}`;
7
+ export declare type TagProps = Omit<MuiTagProps, 'color' | 'variant'> & {
8
+ color?: TagColor;
9
+ variant?: TagVariant;
10
+ size?: TagSize;
11
+ rounded?: boolean;
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps } from './types';
3
+ export declare const TextField: (props: TextFieldProps) => JSX.Element;
4
+ export default TextField;
@@ -0,0 +1,46 @@
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 { useMemo } from 'react';
25
+ import MuiTextField from '@mui/material/TextField';
26
+ import { FormHelperText } from '../FormHelperText';
27
+ export var TextField = function (props) {
28
+ var variant = props.variant, success = props.success, error = props.error, colorProp = props.color, helperTextProp = props.helperText, restProps = __rest(props, ["variant", "success", "error", "color", "helperText"]);
29
+ var color = useMemo(function () {
30
+ if (success) {
31
+ return 'success';
32
+ }
33
+ return undefined;
34
+ }, [success]);
35
+ var helperText = useMemo(function () {
36
+ if (success) {
37
+ return _jsx(FormHelperText, __assign({ success: true }, { children: helperTextProp }), void 0);
38
+ }
39
+ if (error) {
40
+ return _jsx(FormHelperText, __assign({ error: true }, { children: helperTextProp }), void 0);
41
+ }
42
+ return helperTextProp;
43
+ }, [helperTextProp, success, error]);
44
+ return (_jsx(MuiTextField, __assign({ variant: "outlined", error: error, color: color, helperText: helperText }, restProps), void 0));
45
+ };
46
+ export default TextField;
@@ -0,0 +1,2 @@
1
+ export * from './TextField';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './TextField';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
2
+ export declare type TextFieldProps = Omit<MuiTextFieldProps, 'variant' | 'color'> & {
3
+ variant?: never;
4
+ color?: never;
5
+ success?: boolean;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -10,9 +10,10 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { CssBaseline, ThemeProvider as MuiThemeProvider } from '@mui/material';
13
+ import { ThemeProvider as MuiThemeProvider } from '@mui/material';
14
14
  import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
15
+ import { GlobalStyles } from '../GlobalStyles';
15
16
  export var ThemeProvider = function (_a) {
16
17
  var theme = _a.theme, children = _a.children;
17
- return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(CssBaseline, {}, void 0), children] }), void 0) }), void 0));
18
+ return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
18
19
  };
@@ -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,13 @@ 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';
14
+ export * from './GlobalStyles';
package/esm/src/index.js CHANGED
@@ -2,7 +2,13 @@ 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';
14
+ export * from './GlobalStyles';
@@ -49,6 +49,6 @@ describe('createTheme', function () {
49
49
  });
50
50
  it('Theme has elevation params', function () {
51
51
  var theme = createTheme({ brand: Brand.SIGN, fontsUrls: fontsUrls });
52
- expect(theme.elevation[100]).toBe('box-shadow: 0px 0px 1px 0px #072D574F; box-shadow: 0px 1px 1px 0px #072D5740;');
52
+ expect(theme.elevation[100]).toBe('0px 0px 1px 0px #072D574F, 0px 1px 1px 0px #072D5740;');
53
53
  });
54
54
  });
@@ -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 {};
@@ -6,8 +6,8 @@ import { getComponents } from './components';
6
6
  import { SPACING } from './constants';
7
7
  import { elevation } from './elevation';
8
8
  import { shape } from './shape';
9
- export var createTheme = function (_a) {
10
- var brand = _a.brand, options = _a.options, fontsUrls = _a.fontsUrls;
9
+ export var createTheme = function (params) {
10
+ var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls;
11
11
  var themeOptions = {
12
12
  typography: typography,
13
13
  spacing: 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,15 @@
1
+ export var MuiFormHelperText = {
2
+ styleOverrides: {
3
+ root: function (_a) {
4
+ var theme = _a.theme;
5
+ return {
6
+ margin: theme.spacing(1, 0, 0),
7
+ lineHeight: theme.typography.pxToRem(16),
8
+ '&.Mui-error': {
9
+ color: theme.palette.error.dark,
10
+ },
11
+ };
12
+ },
13
+ },
14
+ };
15
+ export default 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,11 @@
1
+ export var MuiFormLabel = {
2
+ styleOverrides: {
3
+ root: function () {
4
+ return {
5
+ position: 'relative',
6
+ transform: 'none',
7
+ };
8
+ },
9
+ },
10
+ };
11
+ export default 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,13 @@
1
+ export var MuiInputBase = {
2
+ styleOverrides: {
3
+ root: function (_a) {
4
+ var theme = _a.theme;
5
+ return {
6
+ '&.MuiInputBase-colorSuccess + .MuiFormHelperText-root': {
7
+ color: theme.palette.green[800],
8
+ },
9
+ };
10
+ },
11
+ },
12
+ };
13
+ export default 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,29 @@
1
+ export var MuiInputLabel = {
2
+ defaultProps: {
3
+ shrink: true,
4
+ },
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ position: 'relative',
10
+ transform: 'none',
11
+ color: theme.palette.grey[700],
12
+ fontWeight: theme.typography.fontWeightMedium,
13
+ fontSize: theme.typography.pxToRem(12),
14
+ lineHeight: theme.typography.pxToRem(16),
15
+ marginBottom: theme.spacing(1),
16
+ '&.Mui-focused': {
17
+ color: theme.palette.grey[700],
18
+ },
19
+ '&.Mui-error': {
20
+ color: theme.palette.grey[700],
21
+ },
22
+ '&.Mui-disabled': {
23
+ color: theme.palette.grey[600],
24
+ },
25
+ };
26
+ },
27
+ },
28
+ };
29
+ export default 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,61 @@
1
+ export var MuiOutlinedInput = {
2
+ defaultProps: {
3
+ notched: false,
4
+ },
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ fontSize: theme.typography.pxToRem(14),
10
+ borderRadius: theme.shape.small,
11
+ color: theme.palette.grey[900],
12
+ background: theme.palette.background.element,
13
+ '&:hover': {
14
+ // FIXME: to theme
15
+ background: '#EEF1F4',
16
+ },
17
+ '&:hover .MuiOutlinedInput-notchedOutline': {
18
+ borderColor: theme.palette.grey[300],
19
+ },
20
+ '&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
21
+ borderColor: theme.palette.background.element,
22
+ },
23
+ '&.Mui-error .MuiOutlinedInput-notchedOutline': {
24
+ borderColor: theme.palette.error.dark,
25
+ },
26
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
27
+ borderColor: theme.palette.primary[700],
28
+ },
29
+ };
30
+ },
31
+ input: function (_a) {
32
+ var theme = _a.theme;
33
+ return {
34
+ padding: theme.spacing(2.5, 2),
35
+ borderRadius: theme.shape.small,
36
+ '&:disabled': {
37
+ background: theme.palette.background.element,
38
+ },
39
+ '&::placeholder': {
40
+ opacity: 1,
41
+ color: theme.palette.grey[600],
42
+ },
43
+ };
44
+ },
45
+ inputSizeSmall: function (_a) {
46
+ var theme = _a.theme;
47
+ return {
48
+ paddingBlock: theme.spacing(2),
49
+ paddingInline: theme.spacing(1.5),
50
+ };
51
+ },
52
+ notchedOutline: function (_a) {
53
+ var theme = _a.theme;
54
+ return {
55
+ borderWidth: '2px',
56
+ borderColor: theme.palette.grey[300],
57
+ };
58
+ },
59
+ },
60
+ };
61
+ export default 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,18 @@
1
+ export var MuiTypography = {
2
+ variants: [
3
+ {
4
+ props: { variant: 'button' },
5
+ style: {
6
+ textTransform: 'capitalize',
7
+ },
8
+ },
9
+ ],
10
+ defaultProps: {
11
+ // TODO: необходимо кастомизировать типы Components['MuiTypography']
12
+ variantMapping: {
13
+ link: 'a',
14
+ code: 'code',
15
+ },
16
+ },
17
+ };
18
+ export default 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,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
  };
@@ -0,0 +1 @@
1
+ export * from './useTheme';
@@ -0,0 +1 @@
1
+ export * from './useTheme';
@@ -0,0 +1,2 @@
1
+ import { Theme } from '../../baseTheme';
2
+ export declare const useTheme: () => Theme;
@@ -0,0 +1,2 @@
1
+ import { useTheme as useEmotionTheme } from '@emotion/react';
2
+ export var useTheme = function () { return useEmotionTheme(); };
@@ -3,3 +3,4 @@ export * from './palette';
3
3
  export * from './constants';
4
4
  export * from './elevation';
5
5
  export * from './shape';
6
+ export * from './hooks';
@@ -3,3 +3,4 @@ export * from './palette';
3
3
  export * from './constants';
4
4
  export * from './elevation';
5
5
  export * from './shape';
6
+ export * from './hooks';
@@ -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
  };