@astral/ui 0.1.0 → 0.2.3

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 (345) hide show
  1. package/esm/index.d.ts +1 -0
  2. package/esm/index.js +1 -0
  3. package/esm/src/Badge/Badge.d.ts +4 -0
  4. package/esm/src/Badge/Badge.js +29 -0
  5. package/esm/src/Badge/index.d.ts +2 -0
  6. package/esm/src/Badge/index.js +2 -0
  7. package/esm/src/Badge/styled.d.ts +50 -0
  8. package/esm/src/Badge/styled.js +60 -0
  9. package/esm/src/Badge/types.d.ts +5 -0
  10. package/esm/src/Badge/types.js +1 -0
  11. package/esm/src/Button/Button.d.ts +3 -0
  12. package/esm/src/Button/Button.js +29 -0
  13. package/esm/src/Button/index.d.ts +2 -0
  14. package/esm/src/Button/index.js +2 -0
  15. package/esm/src/Button/styled.d.ts +13 -0
  16. package/esm/src/Button/styled.js +33 -0
  17. package/esm/src/Button/types.d.ts +7 -0
  18. package/esm/src/Button/types.js +1 -0
  19. package/esm/src/ButtonBase/ButtonBase.d.ts +3 -0
  20. package/esm/src/ButtonBase/ButtonBase.js +29 -0
  21. package/esm/src/ButtonBase/constants.d.ts +22 -0
  22. package/esm/src/ButtonBase/constants.js +26 -0
  23. package/esm/src/ButtonBase/index.d.ts +3 -0
  24. package/esm/src/ButtonBase/index.js +3 -0
  25. package/esm/src/ButtonBase/styled.d.ts +27 -0
  26. package/esm/src/ButtonBase/styled.js +202 -0
  27. package/esm/src/ButtonBase/types.d.ts +11 -0
  28. package/esm/src/ButtonBase/types.js +1 -0
  29. package/esm/src/Checkbox/Checkbox.d.ts +3 -0
  30. package/esm/src/Checkbox/Checkbox.js +29 -0
  31. package/esm/src/Checkbox/icons.d.ts +5 -0
  32. package/esm/src/Checkbox/icons.js +36 -0
  33. package/esm/src/Checkbox/index.d.ts +2 -0
  34. package/esm/src/Checkbox/index.js +2 -0
  35. package/esm/src/Checkbox/styled.d.ts +4 -0
  36. package/esm/src/Checkbox/styled.js +32 -0
  37. package/esm/src/Checkbox/types.d.ts +2 -0
  38. package/esm/src/Checkbox/types.js +1 -0
  39. package/esm/src/CircularProgress/CircularProgress.d.ts +4 -0
  40. package/esm/src/CircularProgress/CircularProgress.js +30 -0
  41. package/esm/src/CircularProgress/constants.d.ts +8 -0
  42. package/esm/src/CircularProgress/constants.js +10 -0
  43. package/esm/src/CircularProgress/index.d.ts +2 -0
  44. package/esm/src/CircularProgress/index.js +2 -0
  45. package/esm/src/CircularProgress/styled.d.ts +7 -0
  46. package/esm/src/CircularProgress/styled.js +17 -0
  47. package/esm/src/CircularProgress/types.d.ts +8 -0
  48. package/esm/src/CircularProgress/types.js +1 -0
  49. package/esm/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  50. package/esm/src/FormControlLabel/FormControlLabel.js +28 -0
  51. package/esm/src/FormControlLabel/index.d.ts +2 -0
  52. package/esm/src/FormControlLabel/index.js +2 -0
  53. package/esm/src/FormControlLabel/styled.d.ts +3 -0
  54. package/esm/src/FormControlLabel/styled.js +11 -0
  55. package/esm/src/FormControlLabel/types.d.ts +2 -0
  56. package/esm/src/FormControlLabel/types.js +1 -0
  57. package/esm/src/FormHelperText/FormHelperText.d.ts +4 -0
  58. package/esm/src/FormHelperText/FormHelperText.js +20 -0
  59. package/esm/src/FormHelperText/index.d.ts +1 -0
  60. package/esm/src/FormHelperText/index.js +1 -0
  61. package/esm/src/FormHelperText/styled.d.ts +41 -0
  62. package/esm/src/FormHelperText/styled.js +11 -0
  63. package/esm/src/FormHelperText/types.d.ts +6 -0
  64. package/esm/src/FormHelperText/types.js +1 -0
  65. package/esm/src/GlobalStyles/GlobalStyles.d.ts +3 -0
  66. package/esm/src/GlobalStyles/GlobalStyles.js +35 -0
  67. package/esm/src/GlobalStyles/index.d.ts +1 -0
  68. package/esm/src/GlobalStyles/index.js +1 -0
  69. package/esm/src/Grid/Grid.d.ts +3 -0
  70. package/esm/src/Grid/Grid.js +28 -0
  71. package/esm/src/Grid/index.d.ts +2 -0
  72. package/esm/src/Grid/index.js +2 -0
  73. package/esm/src/Grid/styled.d.ts +13 -0
  74. package/esm/src/Grid/styled.js +11 -0
  75. package/esm/src/Grid/types.d.ts +30 -0
  76. package/esm/src/Grid/types.js +1 -0
  77. package/esm/src/IconButton/IconButton.d.ts +3 -0
  78. package/esm/src/IconButton/IconButton.js +28 -0
  79. package/esm/src/IconButton/index.d.ts +1 -0
  80. package/esm/src/IconButton/index.js +1 -0
  81. package/esm/src/IconButton/styled.d.ts +19 -0
  82. package/esm/src/IconButton/styled.js +21 -0
  83. package/esm/src/Menu/Menu.d.ts +3 -0
  84. package/esm/src/Menu/Menu.js +28 -0
  85. package/esm/src/Menu/index.d.ts +1 -0
  86. package/esm/src/Menu/index.js +1 -0
  87. package/esm/src/MenuItem/MenuItem.d.ts +3 -0
  88. package/esm/src/MenuItem/MenuItem.js +28 -0
  89. package/esm/src/MenuItem/index.d.ts +1 -0
  90. package/esm/src/MenuItem/index.js +1 -0
  91. package/esm/src/MenuList/MenuList.d.ts +3 -0
  92. package/esm/src/MenuList/MenuList.js +28 -0
  93. package/esm/src/MenuList/index.d.ts +2 -0
  94. package/esm/src/MenuList/index.js +2 -0
  95. package/esm/src/MenuList/styled.d.ts +20 -0
  96. package/esm/src/MenuList/styled.js +17 -0
  97. package/esm/src/MenuList/types.d.ts +2 -0
  98. package/esm/src/MenuList/types.js +1 -0
  99. package/esm/src/Tag/Tag.d.ts +3 -0
  100. package/esm/src/Tag/Tag.js +28 -0
  101. package/esm/src/Tag/constants.d.ts +21 -0
  102. package/esm/src/Tag/constants.js +25 -0
  103. package/esm/src/Tag/index.d.ts +2 -0
  104. package/esm/src/Tag/index.js +2 -0
  105. package/esm/src/Tag/styled.d.ts +26 -0
  106. package/esm/src/Tag/styled.js +117 -0
  107. package/esm/src/Tag/types.d.ts +12 -0
  108. package/esm/src/Tag/types.js +1 -0
  109. package/esm/src/TextField/TextField.d.ts +4 -0
  110. package/esm/src/TextField/TextField.js +46 -0
  111. package/esm/src/TextField/index.d.ts +2 -0
  112. package/esm/src/TextField/index.js +2 -0
  113. package/esm/src/TextField/types.d.ts +6 -0
  114. package/esm/src/TextField/types.js +1 -0
  115. package/esm/src/ThemeProvider/ThemeProvider.d.ts +7 -0
  116. package/esm/src/ThemeProvider/ThemeProvider.js +19 -0
  117. package/esm/src/ThemeProvider/index.d.ts +1 -0
  118. package/esm/src/ThemeProvider/index.js +1 -0
  119. package/esm/src/Typography/Typography.d.ts +8 -0
  120. package/esm/src/Typography/Typography.js +29 -0
  121. package/esm/src/Typography/index.d.ts +1 -0
  122. package/esm/src/Typography/index.js +1 -0
  123. package/esm/src/index.d.ts +18 -0
  124. package/esm/src/index.js +18 -0
  125. package/esm/src/styles/index.d.ts +1 -0
  126. package/esm/src/styles/index.js +1 -0
  127. package/esm/src/styles/styled/index.d.ts +1 -0
  128. package/esm/src/styles/styled/index.js +1 -0
  129. package/esm/src/styles/styled/styled.d.ts +2 -0
  130. package/esm/src/styles/styled/styled.js +2 -0
  131. package/esm/src/styles/styled/types.d.ts +48 -0
  132. package/esm/src/styles/styled/types.js +1 -0
  133. package/esm/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
  134. package/esm/src/theme/__tests__/BaseTheme.test.js +54 -0
  135. package/esm/src/theme/baseTheme.d.ts +28 -0
  136. package/esm/src/theme/baseTheme.js +19 -0
  137. package/esm/src/theme/components/MuiFormHelperText.d.ts +4 -0
  138. package/esm/src/theme/components/MuiFormHelperText.js +15 -0
  139. package/esm/src/theme/components/MuiFormLabel.d.ts +4 -0
  140. package/esm/src/theme/components/MuiFormLabel.js +11 -0
  141. package/esm/src/theme/components/MuiInputBase.d.ts +4 -0
  142. package/esm/src/theme/components/MuiInputBase.js +13 -0
  143. package/esm/src/theme/components/MuiInputLabel.d.ts +4 -0
  144. package/esm/src/theme/components/MuiInputLabel.js +29 -0
  145. package/esm/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  146. package/esm/src/theme/components/MuiOutlinedInput.js +61 -0
  147. package/esm/src/theme/components/MuiTypography.d.ts +21 -0
  148. package/esm/src/theme/components/MuiTypography.js +18 -0
  149. package/esm/src/theme/components/components.d.ts +21 -0
  150. package/esm/src/theme/components/components.js +61 -0
  151. package/esm/src/theme/components/index.d.ts +1 -0
  152. package/esm/src/theme/components/index.js +1 -0
  153. package/esm/src/theme/constants.d.ts +9 -0
  154. package/esm/src/theme/constants.js +10 -0
  155. package/esm/src/theme/elevation.d.ts +8 -0
  156. package/esm/src/theme/elevation.js +7 -0
  157. package/esm/src/theme/hooks/index.d.ts +1 -0
  158. package/esm/src/theme/hooks/index.js +1 -0
  159. package/esm/src/theme/hooks/useTheme/index.d.ts +2 -0
  160. package/esm/src/theme/hooks/useTheme/index.js +2 -0
  161. package/esm/src/theme/index.d.ts +6 -0
  162. package/esm/src/theme/index.js +6 -0
  163. package/esm/src/theme/palette/brandPalette.d.ts +15 -0
  164. package/esm/src/theme/palette/brandPalette.js +82 -0
  165. package/esm/src/theme/palette/index.d.ts +2 -0
  166. package/esm/src/theme/palette/index.js +2 -0
  167. package/esm/src/theme/palette/palette.d.ts +29 -0
  168. package/esm/src/theme/palette/palette.js +104 -0
  169. package/esm/src/theme/shape.d.ts +6 -0
  170. package/esm/src/theme/shape.js +5 -0
  171. package/esm/src/theme/typography.d.ts +19 -0
  172. package/esm/src/theme/typography.js +108 -0
  173. package/node/index.d.ts +1 -0
  174. package/node/index.js +13 -0
  175. package/node/src/Badge/Badge.d.ts +4 -0
  176. package/node/src/Badge/Badge.js +31 -0
  177. package/node/src/Badge/index.d.ts +2 -0
  178. package/node/src/Badge/index.js +14 -0
  179. package/node/src/Badge/styled.d.ts +50 -0
  180. package/node/src/Badge/styled.js +63 -0
  181. package/node/src/Badge/types.d.ts +5 -0
  182. package/node/src/Badge/types.js +2 -0
  183. package/node/src/Button/Button.d.ts +3 -0
  184. package/node/src/Button/Button.js +33 -0
  185. package/node/src/Button/index.d.ts +2 -0
  186. package/node/src/Button/index.js +14 -0
  187. package/node/src/Button/styled.d.ts +13 -0
  188. package/node/src/Button/styled.js +36 -0
  189. package/node/src/Button/types.d.ts +7 -0
  190. package/node/src/Button/types.js +2 -0
  191. package/node/src/ButtonBase/ButtonBase.d.ts +3 -0
  192. package/node/src/ButtonBase/ButtonBase.js +33 -0
  193. package/node/src/ButtonBase/constants.d.ts +22 -0
  194. package/node/src/ButtonBase/constants.js +29 -0
  195. package/node/src/ButtonBase/index.d.ts +3 -0
  196. package/node/src/ButtonBase/index.js +15 -0
  197. package/node/src/ButtonBase/styled.d.ts +27 -0
  198. package/node/src/ButtonBase/styled.js +229 -0
  199. package/node/src/ButtonBase/types.d.ts +11 -0
  200. package/node/src/ButtonBase/types.js +2 -0
  201. package/node/src/Checkbox/Checkbox.d.ts +3 -0
  202. package/node/src/Checkbox/Checkbox.js +33 -0
  203. package/node/src/Checkbox/icons.d.ts +5 -0
  204. package/node/src/Checkbox/icons.js +42 -0
  205. package/node/src/Checkbox/index.d.ts +2 -0
  206. package/node/src/Checkbox/index.js +14 -0
  207. package/node/src/Checkbox/styled.d.ts +4 -0
  208. package/node/src/Checkbox/styled.js +35 -0
  209. package/node/src/Checkbox/types.d.ts +2 -0
  210. package/node/src/Checkbox/types.js +2 -0
  211. package/node/src/CircularProgress/CircularProgress.d.ts +4 -0
  212. package/node/src/CircularProgress/CircularProgress.js +34 -0
  213. package/node/src/CircularProgress/constants.d.ts +8 -0
  214. package/node/src/CircularProgress/constants.js +13 -0
  215. package/node/src/CircularProgress/index.d.ts +2 -0
  216. package/node/src/CircularProgress/index.js +14 -0
  217. package/node/src/CircularProgress/styled.d.ts +7 -0
  218. package/node/src/CircularProgress/styled.js +20 -0
  219. package/node/src/CircularProgress/types.d.ts +8 -0
  220. package/node/src/CircularProgress/types.js +2 -0
  221. package/node/src/FormControlLabel/FormControlLabel.d.ts +3 -0
  222. package/node/src/FormControlLabel/FormControlLabel.js +32 -0
  223. package/node/src/FormControlLabel/index.d.ts +2 -0
  224. package/node/src/FormControlLabel/index.js +14 -0
  225. package/node/src/FormControlLabel/styled.d.ts +3 -0
  226. package/node/src/FormControlLabel/styled.js +14 -0
  227. package/node/src/FormControlLabel/types.d.ts +2 -0
  228. package/node/src/FormControlLabel/types.js +2 -0
  229. package/node/src/FormHelperText/FormHelperText.d.ts +4 -0
  230. package/node/src/FormHelperText/FormHelperText.js +24 -0
  231. package/node/src/FormHelperText/index.d.ts +1 -0
  232. package/node/src/FormHelperText/index.js +13 -0
  233. package/node/src/FormHelperText/styled.d.ts +41 -0
  234. package/node/src/FormHelperText/styled.js +14 -0
  235. package/node/src/FormHelperText/types.d.ts +6 -0
  236. package/node/src/FormHelperText/types.js +2 -0
  237. package/node/src/GlobalStyles/GlobalStyles.d.ts +3 -0
  238. package/node/src/GlobalStyles/GlobalStyles.js +39 -0
  239. package/node/src/GlobalStyles/index.d.ts +1 -0
  240. package/node/src/GlobalStyles/index.js +13 -0
  241. package/node/src/Grid/Grid.d.ts +3 -0
  242. package/node/src/Grid/Grid.js +32 -0
  243. package/node/src/Grid/index.d.ts +2 -0
  244. package/node/src/Grid/index.js +14 -0
  245. package/node/src/Grid/styled.d.ts +13 -0
  246. package/node/src/Grid/styled.js +14 -0
  247. package/node/src/Grid/types.d.ts +30 -0
  248. package/node/src/Grid/types.js +2 -0
  249. package/node/src/IconButton/IconButton.d.ts +3 -0
  250. package/node/src/IconButton/IconButton.js +32 -0
  251. package/node/src/IconButton/index.d.ts +1 -0
  252. package/node/src/IconButton/index.js +13 -0
  253. package/node/src/IconButton/styled.d.ts +19 -0
  254. package/node/src/IconButton/styled.js +25 -0
  255. package/node/src/Menu/Menu.d.ts +3 -0
  256. package/node/src/Menu/Menu.js +32 -0
  257. package/node/src/Menu/index.d.ts +1 -0
  258. package/node/src/Menu/index.js +13 -0
  259. package/node/src/MenuItem/MenuItem.d.ts +3 -0
  260. package/node/src/MenuItem/MenuItem.js +32 -0
  261. package/node/src/MenuItem/index.d.ts +1 -0
  262. package/node/src/MenuItem/index.js +13 -0
  263. package/node/src/MenuList/MenuList.d.ts +3 -0
  264. package/node/src/MenuList/MenuList.js +32 -0
  265. package/node/src/MenuList/index.d.ts +2 -0
  266. package/node/src/MenuList/index.js +14 -0
  267. package/node/src/MenuList/styled.d.ts +20 -0
  268. package/node/src/MenuList/styled.js +20 -0
  269. package/node/src/MenuList/types.d.ts +2 -0
  270. package/node/src/MenuList/types.js +2 -0
  271. package/node/src/Tag/Tag.d.ts +3 -0
  272. package/node/src/Tag/Tag.js +32 -0
  273. package/node/src/Tag/constants.d.ts +21 -0
  274. package/node/src/Tag/constants.js +28 -0
  275. package/node/src/Tag/index.d.ts +2 -0
  276. package/node/src/Tag/index.js +14 -0
  277. package/node/src/Tag/styled.d.ts +26 -0
  278. package/node/src/Tag/styled.js +120 -0
  279. package/node/src/Tag/types.d.ts +12 -0
  280. package/node/src/Tag/types.js +2 -0
  281. package/node/src/TextField/TextField.d.ts +4 -0
  282. package/node/src/TextField/TextField.js +53 -0
  283. package/node/src/TextField/index.d.ts +2 -0
  284. package/node/src/TextField/index.js +14 -0
  285. package/node/src/TextField/types.d.ts +6 -0
  286. package/node/src/TextField/types.js +2 -0
  287. package/node/src/ThemeProvider/ThemeProvider.d.ts +7 -0
  288. package/node/src/ThemeProvider/ThemeProvider.js +23 -0
  289. package/node/src/ThemeProvider/index.d.ts +1 -0
  290. package/node/src/ThemeProvider/index.js +13 -0
  291. package/node/src/Typography/Typography.d.ts +8 -0
  292. package/node/src/Typography/Typography.js +36 -0
  293. package/node/src/Typography/index.d.ts +1 -0
  294. package/node/src/Typography/index.js +13 -0
  295. package/node/src/index.d.ts +18 -0
  296. package/node/src/index.js +30 -0
  297. package/node/src/styles/index.d.ts +1 -0
  298. package/node/src/styles/index.js +13 -0
  299. package/node/src/styles/styled/index.d.ts +1 -0
  300. package/node/src/styles/styled/index.js +13 -0
  301. package/node/src/styles/styled/styled.d.ts +2 -0
  302. package/node/src/styles/styled/styled.js +8 -0
  303. package/node/src/styles/styled/types.d.ts +48 -0
  304. package/node/src/styles/styled/types.js +2 -0
  305. package/node/src/theme/__tests__/BaseTheme.test.d.ts +1 -0
  306. package/node/src/theme/__tests__/BaseTheme.test.js +56 -0
  307. package/node/src/theme/baseTheme.d.ts +28 -0
  308. package/node/src/theme/baseTheme.js +23 -0
  309. package/node/src/theme/components/MuiFormHelperText.d.ts +4 -0
  310. package/node/src/theme/components/MuiFormHelperText.js +18 -0
  311. package/node/src/theme/components/MuiFormLabel.d.ts +4 -0
  312. package/node/src/theme/components/MuiFormLabel.js +14 -0
  313. package/node/src/theme/components/MuiInputBase.d.ts +4 -0
  314. package/node/src/theme/components/MuiInputBase.js +16 -0
  315. package/node/src/theme/components/MuiInputLabel.d.ts +4 -0
  316. package/node/src/theme/components/MuiInputLabel.js +32 -0
  317. package/node/src/theme/components/MuiOutlinedInput.d.ts +4 -0
  318. package/node/src/theme/components/MuiOutlinedInput.js +64 -0
  319. package/node/src/theme/components/MuiTypography.d.ts +21 -0
  320. package/node/src/theme/components/MuiTypography.js +21 -0
  321. package/node/src/theme/components/components.d.ts +21 -0
  322. package/node/src/theme/components/components.js +65 -0
  323. package/node/src/theme/components/index.d.ts +1 -0
  324. package/node/src/theme/components/index.js +13 -0
  325. package/node/src/theme/constants.d.ts +9 -0
  326. package/node/src/theme/constants.js +13 -0
  327. package/node/src/theme/elevation.d.ts +8 -0
  328. package/node/src/theme/elevation.js +10 -0
  329. package/node/src/theme/hooks/index.d.ts +1 -0
  330. package/node/src/theme/hooks/index.js +13 -0
  331. package/node/src/theme/hooks/useTheme/index.d.ts +2 -0
  332. package/node/src/theme/hooks/useTheme/index.js +6 -0
  333. package/node/src/theme/index.d.ts +6 -0
  334. package/node/src/theme/index.js +18 -0
  335. package/node/src/theme/palette/brandPalette.d.ts +15 -0
  336. package/node/src/theme/palette/brandPalette.js +85 -0
  337. package/node/src/theme/palette/index.d.ts +2 -0
  338. package/node/src/theme/palette/index.js +14 -0
  339. package/node/src/theme/palette/palette.d.ts +29 -0
  340. package/node/src/theme/palette/palette.js +108 -0
  341. package/node/src/theme/shape.d.ts +6 -0
  342. package/node/src/theme/shape.js +8 -0
  343. package/node/src/theme/typography.d.ts +19 -0
  344. package/node/src/theme/typography.js +112 -0
  345. package/package.json +7 -12
@@ -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);
@@ -0,0 +1,9 @@
1
+ export declare enum Brand {
2
+ DEFAULT = "DEFAULT",
3
+ EDO = "EDO",
4
+ AO5 = "AO5",
5
+ OFD = "OFD",
6
+ SIGN = "SIGN",
7
+ LKP = "LKP"
8
+ }
9
+ export declare const SPACING = 4;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SPACING = exports.Brand = void 0;
4
+ var Brand;
5
+ (function (Brand) {
6
+ Brand["DEFAULT"] = "DEFAULT";
7
+ Brand["EDO"] = "EDO";
8
+ Brand["AO5"] = "AO5";
9
+ Brand["OFD"] = "OFD";
10
+ Brand["SIGN"] = "SIGN";
11
+ Brand["LKP"] = "LKP";
12
+ })(Brand = exports.Brand || (exports.Brand = {}));
13
+ exports.SPACING = 4;
@@ -0,0 +1,8 @@
1
+ export declare type Elevation = {
2
+ 100: string;
3
+ 200: string;
4
+ 300: string;
5
+ 400: string;
6
+ 500: string;
7
+ };
8
+ export declare const elevation: Elevation;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.elevation = void 0;
4
+ exports.elevation = {
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
+ };
@@ -0,0 +1 @@
1
+ export * from './useTheme';
@@ -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("./useTheme"), exports);
@@ -0,0 +1,2 @@
1
+ import { Theme } from '../../baseTheme';
2
+ export declare const useTheme: () => Theme;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTheme = void 0;
4
+ var react_1 = require("@emotion/react");
5
+ var useTheme = function () { return (0, react_1.useTheme)(); };
6
+ exports.useTheme = useTheme;
@@ -0,0 +1,6 @@
1
+ export * from './baseTheme';
2
+ export * from './palette';
3
+ export * from './constants';
4
+ export * from './elevation';
5
+ export * from './shape';
6
+ export * from './hooks';
@@ -0,0 +1,18 @@
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("./baseTheme"), exports);
14
+ __exportStar(require("./palette"), exports);
15
+ __exportStar(require("./constants"), exports);
16
+ __exportStar(require("./elevation"), exports);
17
+ __exportStar(require("./shape"), exports);
18
+ __exportStar(require("./hooks"), exports);
@@ -0,0 +1,15 @@
1
+ import { Brand } from '../constants';
2
+ declare type BrandColors = {
3
+ secondary: string;
4
+ 900: string;
5
+ 800: string;
6
+ 700: string;
7
+ 600: string;
8
+ 500: string;
9
+ 400: string;
10
+ 300: string;
11
+ 200: string;
12
+ 100: string;
13
+ };
14
+ export declare const brandPalette: Record<Brand, BrandColors>;
15
+ export {};
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.brandPalette = void 0;
5
+ var constants_1 = require("../constants");
6
+ var defaultBrandPalette = {
7
+ secondary: '#55B8F0',
8
+ 900: '#0F52B8',
9
+ 800: '#2165CC',
10
+ 700: '#1874FF',
11
+ 600: '#2684FF',
12
+ 500: '#4C9AFF',
13
+ 400: '#70AEFF',
14
+ 300: '#94C2FF',
15
+ 200: '#C5DCFF',
16
+ 100: '#E1EDFF',
17
+ };
18
+ var edoPalette = {
19
+ secondary: '#5653FF',
20
+ 900: '#5D3FD4',
21
+ 800: '#6746EB',
22
+ 700: '#8566FF',
23
+ 600: '#9D85FF',
24
+ 500: '#9D85FF',
25
+ 400: '#B29EFF',
26
+ 300: '#C2B2FF',
27
+ 200: '#E0D9FF',
28
+ 100: '#EFEBFF',
29
+ };
30
+ var ao5Palette = {
31
+ secondary: '#14A5D3',
32
+ 900: '#0068B2',
33
+ 800: '#0074C6',
34
+ 700: '#0989E3',
35
+ 600: '#2195E6',
36
+ 500: '#3AA1E9',
37
+ 400: '#52ACEB',
38
+ 300: '#84C4F1',
39
+ 200: '#C1E2F8',
40
+ 100: '#DFF0FB',
41
+ };
42
+ var ofdPalette = {
43
+ secondary: '#22BDEE',
44
+ 900: '#1F78D6',
45
+ 800: '#2285EE',
46
+ 700: '#46A0FF',
47
+ 600: '#58A9FF',
48
+ 500: '#6BB3FF',
49
+ 400: '#7DBCFF',
50
+ 300: '#A2CFFF',
51
+ 200: '#D1E7FF',
52
+ 100: '#E7F3FF',
53
+ };
54
+ var signPalette = {
55
+ secondary: '#4099AC',
56
+ 900: '#325D89',
57
+ 800: '#376798',
58
+ 700: '#4D86BF',
59
+ 600: '#5E92C5',
60
+ 500: '#719ECC',
61
+ 400: '#82AAD2',
62
+ 300: '#A6C2DF',
63
+ 200: '#D3E1EF',
64
+ 100: '#E8EFF7',
65
+ };
66
+ var lkpPalette = {
67
+ secondary: '#00BDB2',
68
+ 900: '#009E71',
69
+ 800: '#00B07E',
70
+ 700: '#2CC89B',
71
+ 600: '#41CDA5',
72
+ 500: '#56D3AF',
73
+ 400: '#6BD8B9',
74
+ 300: '#95E3CD',
75
+ 200: '#CAF1E6',
76
+ 100: '#E3F8F2',
77
+ };
78
+ exports.brandPalette = (_a = {},
79
+ _a[constants_1.Brand.DEFAULT] = defaultBrandPalette,
80
+ _a[constants_1.Brand.AO5] = ao5Palette,
81
+ _a[constants_1.Brand.EDO] = edoPalette,
82
+ _a[constants_1.Brand.OFD] = ofdPalette,
83
+ _a[constants_1.Brand.SIGN] = signPalette,
84
+ _a[constants_1.Brand.LKP] = lkpPalette,
85
+ _a);
@@ -0,0 +1,2 @@
1
+ export * from './brandPalette';
2
+ export * from './palette';
@@ -0,0 +1,14 @@
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("./brandPalette"), exports);
14
+ __exportStar(require("./palette"), exports);
@@ -0,0 +1,29 @@
1
+ import { PaletteOptions as MuiPaletteOptions, PaletteColorOptions } from '@mui/material';
2
+ import { TypeBackground } from '@mui/material/styles/createPalette';
3
+ import { Brand } from '../constants';
4
+ export declare type Color = {
5
+ 900: string;
6
+ 800: string;
7
+ 700: string;
8
+ 600: string;
9
+ 500: string;
10
+ 400: string;
11
+ 300: string;
12
+ 200: string;
13
+ 100: string;
14
+ };
15
+ export declare type PrimaryColorOptions = PaletteColorOptions & Color;
16
+ export declare type Background = TypeBackground & {
17
+ element: string;
18
+ elementHover: string;
19
+ };
20
+ declare type PaletteOptions = MuiPaletteOptions & {
21
+ red: Color;
22
+ green: Color;
23
+ yellow: Color;
24
+ grey: Color;
25
+ primary: PrimaryColorOptions;
26
+ background: Background;
27
+ };
28
+ export declare const getPalette: (brand?: Brand) => PaletteOptions;
29
+ export {};
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getPalette = void 0;
15
+ var constants_1 = require("../constants");
16
+ var brandPalette_1 = require("./brandPalette");
17
+ var getPalette = function (brand) {
18
+ if (brand === void 0) { brand = constants_1.Brand.DEFAULT; }
19
+ var brandColors = brandPalette_1.brandPalette[brand];
20
+ return {
21
+ red: {
22
+ 900: '#E64343',
23
+ 800: '#F24646',
24
+ 700: '#F35959',
25
+ 600: '#F67E7E',
26
+ 500: '#F79090',
27
+ 400: '#F8A3A3',
28
+ 300: '#FAB5B5',
29
+ 200: '#FCDADA',
30
+ 100: '#FEEDED',
31
+ },
32
+ green: {
33
+ 900: '#008055',
34
+ 800: '#00875A',
35
+ 700: '#19936A',
36
+ 600: '#4DAB8C',
37
+ 500: '#66B79C',
38
+ 400: '#80C3AC',
39
+ 300: '#99CFBD',
40
+ 200: '#CCE7DE',
41
+ 100: '#E6F3EF',
42
+ },
43
+ yellow: {
44
+ 900: '#ED8000',
45
+ 800: '#F98700',
46
+ 700: '#FA961F',
47
+ 600: '#FBAB4D',
48
+ 500: '#FBB766',
49
+ 400: '#FDCF99',
50
+ 300: '#FDDBB2',
51
+ 200: '#FBE6CC',
52
+ 100: '#FEF3E6',
53
+ },
54
+ primary: __assign({ main: brandColors[800], dark: brandColors[900], contrastText: '#FFF' }, brandColors),
55
+ secondary: {
56
+ main: brandColors.secondary,
57
+ dark: brandColors[900],
58
+ contrastText: '#FFF',
59
+ },
60
+ get success() {
61
+ return {
62
+ light: this.green[100],
63
+ main: this.green[600],
64
+ dark: this.green[800],
65
+ contrastText: '#FFF',
66
+ };
67
+ },
68
+ get warning() {
69
+ return {
70
+ light: this.yellow[100],
71
+ main: this.yellow[600],
72
+ dark: this.yellow[800],
73
+ contrastText: '#FFF',
74
+ };
75
+ },
76
+ get error() {
77
+ return {
78
+ light: this.red[100],
79
+ main: this.red[600],
80
+ dark: this.red[800],
81
+ contrastText: '#FFF',
82
+ };
83
+ },
84
+ text: {
85
+ primary: '#072D57',
86
+ secondary: '#072D57',
87
+ disabled: '#99A9BA',
88
+ },
89
+ grey: {
90
+ 900: '#072D57',
91
+ 800: '#1D3F66',
92
+ 700: '#557192',
93
+ 600: '#778DA8',
94
+ 500: '#99A9BA',
95
+ 400: '#B7C2CE',
96
+ 300: '#DDE2E8',
97
+ 200: '#EBEEF1',
98
+ 100: '#F0F4F7',
99
+ },
100
+ background: {
101
+ default: '#FFF',
102
+ paper: '#FFF',
103
+ element: '#FAFBFC',
104
+ elementHover: '#EBECF0',
105
+ },
106
+ };
107
+ };
108
+ exports.getPalette = getPalette;
@@ -0,0 +1,6 @@
1
+ export declare type Shape = {
2
+ small: string;
3
+ medium: string;
4
+ large: string;
5
+ };
6
+ export declare const shape: Shape;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shape = void 0;
4
+ exports.shape = {
5
+ small: '3px',
6
+ medium: '6px',
7
+ large: '9px',
8
+ };
@@ -0,0 +1,19 @@
1
+ import { Typography } from '@mui/material/styles/createTypography';
2
+ import { CSSProperties } from 'react';
3
+ declare type CustomTypographyVariantStyle = {
4
+ fontSize: CSSProperties['fontSize'];
5
+ fontWeight: CSSProperties['fontWeight'];
6
+ };
7
+ export declare type TypographyThemeOptions = Typography & {
8
+ h7: CustomTypographyVariantStyle;
9
+ h8: CustomTypographyVariantStyle;
10
+ h9: CustomTypographyVariantStyle;
11
+ ui: CustomTypographyVariantStyle;
12
+ link: CustomTypographyVariantStyle;
13
+ pointer: CustomTypographyVariantStyle;
14
+ small: CustomTypographyVariantStyle;
15
+ code: CustomTypographyVariantStyle;
16
+ };
17
+ export declare const pxToRem: (fontSize: number, htmlFontSize?: number) => string;
18
+ export declare const typography: Partial<TypographyThemeOptions>;
19
+ export {};
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typography = exports.pxToRem = void 0;
4
+ var HTML_FONT_SIZE = 14;
5
+ // Т.к. нет досутпа к теме, написал функцию для конвертации px в rem
6
+ var pxToRem = function (fontSize, htmlFontSize) {
7
+ if (htmlFontSize === void 0) { htmlFontSize = HTML_FONT_SIZE; }
8
+ return "".concat(fontSize / htmlFontSize, "rem");
9
+ };
10
+ exports.pxToRem = pxToRem;
11
+ exports.typography = {
12
+ fontSize: 14,
13
+ htmlFontSize: 14,
14
+ fontWeightLight: 300,
15
+ fontWeightRegular: 400,
16
+ fontWeightMedium: 500,
17
+ fontWeightBold: 700,
18
+ fontFamily: ['Ubuntu', 'sans-serif'].join(','),
19
+ get h1() {
20
+ return {
21
+ fontSize: (0, exports.pxToRem)(35, this.htmlFontSize),
22
+ fontWeight: this.fontWeightMedium,
23
+ };
24
+ },
25
+ get h2() {
26
+ return {
27
+ fontSize: (0, exports.pxToRem)(29, this.htmlFontSize),
28
+ fontWeight: this.fontWeightMedium,
29
+ };
30
+ },
31
+ get h3() {
32
+ return {
33
+ fontSize: (0, exports.pxToRem)(24, this.htmlFontSize),
34
+ fontWeight: this.fontWeightMedium,
35
+ };
36
+ },
37
+ get h4() {
38
+ return {
39
+ fontSize: (0, exports.pxToRem)(20, this.htmlFontSize),
40
+ fontWeight: this.fontWeightMedium,
41
+ };
42
+ },
43
+ get h5() {
44
+ return {
45
+ fontSize: (0, exports.pxToRem)(16, this.htmlFontSize),
46
+ fontWeight: this.fontWeightMedium,
47
+ };
48
+ },
49
+ get h6() {
50
+ return {
51
+ fontSize: (0, exports.pxToRem)(14, this.htmlFontSize),
52
+ fontWeight: this.fontWeightMedium,
53
+ };
54
+ },
55
+ get h7() {
56
+ return {
57
+ fontSize: (0, exports.pxToRem)(12, this.htmlFontSize),
58
+ fontWeight: this.fontWeightMedium,
59
+ };
60
+ },
61
+ get h8() {
62
+ return {
63
+ fontSize: (0, exports.pxToRem)(12, this.htmlFontSize),
64
+ fontWeight: this.fontWeightMedium,
65
+ };
66
+ },
67
+ get h9() {
68
+ return {
69
+ fontSize: (0, exports.pxToRem)(11, this.htmlFontSize),
70
+ fontWeight: this.fontWeightBold,
71
+ };
72
+ },
73
+ get button() {
74
+ return {
75
+ fontSize: (0, exports.pxToRem)(14, this.htmlFontSize),
76
+ fontWeight: this.fontWeightMedium,
77
+ };
78
+ },
79
+ get ui() {
80
+ return {
81
+ fontSize: (0, exports.pxToRem)(14, this.htmlFontSize),
82
+ fontWeight: this.fontWeightRegular,
83
+ };
84
+ },
85
+ get link() {
86
+ return {
87
+ fontSize: (0, exports.pxToRem)(14, this.htmlFontSize),
88
+ fontWeight: this.fontWeightRegular,
89
+ };
90
+ },
91
+ get pointer() {
92
+ return {
93
+ fontSize: (0, exports.pxToRem)(12, this.htmlFontSize),
94
+ fontWeight: this.fontWeightMedium,
95
+ };
96
+ },
97
+ get small() {
98
+ return {
99
+ fontSize: (0, exports.pxToRem)(12, this.htmlFontSize),
100
+ fontWeight: this.fontWeightRegular,
101
+ };
102
+ },
103
+ get code() {
104
+ return {
105
+ fontSize: (0, exports.pxToRem)(12, this.htmlFontSize),
106
+ fontWeight: this.fontWeightLight,
107
+ };
108
+ },
109
+ body1: {
110
+ fontSize: '1rem',
111
+ },
112
+ };
package/package.json CHANGED
@@ -1,24 +1,15 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
- "main": "./dist/esm/index.js",
6
5
  "source": "./src/index.ts",
7
- "module": "./dist/esm/index.js",
8
- "types": "./dist/esm/index.d.ts",
9
- "exports": {
10
- "require": "./dist/cjs/index.js",
11
- "default": "./dist/esm/index.js"
12
- },
13
6
  "jest": {
14
7
  "moduleNameMapper": {
15
8
  "^lodash-es$": "lodash"
16
9
  }
17
10
  },
18
- "files": [
19
- "dist"
20
- ],
21
11
  "dependencies": {
12
+ "@astral/icons": "^0.2.3",
22
13
  "@emotion/react": "11.5.0",
23
14
  "@emotion/styled": "11.3.0",
24
15
  "@mui/base": "5.0.0-alpha.66",
@@ -38,5 +29,9 @@
38
29
  "bugs": {
39
30
  "url": "https://github.com/kaluga-astral/frontend/issues"
40
31
  },
41
- "keywords": []
32
+ "keywords": [],
33
+ "sideEffects": false,
34
+ "main": "./node/index.js",
35
+ "types": "./esm/index.d.ts",
36
+ "module": "./esm/index.js"
42
37
  }