@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,30 @@
1
+ import React from 'react';
2
+ import { Breakpoint } from '@mui/material/styles';
3
+ declare type StyleCSSType<Type extends keyof React.CSSProperties> = React.CSSProperties[Type] | Partial<Record<Breakpoint, React.CSSProperties[Type]>>;
4
+ export declare type GridContainerProps = {
5
+ container?: boolean;
6
+ templateColumns?: StyleCSSType<'gridTemplateColumns'>;
7
+ templateRows?: StyleCSSType<'gridTemplateRows'>;
8
+ templateAreas?: StyleCSSType<'gridTemplateAreas'>;
9
+ columnSpacing?: StyleCSSType<'gridColumnGap'>;
10
+ rowSpacing?: StyleCSSType<'gridRowGap'>;
11
+ spacing?: StyleCSSType<'gridGap'>;
12
+ justifyItems?: StyleCSSType<'justifyItems'>;
13
+ alignItems?: StyleCSSType<'alignItems'>;
14
+ justifyContent?: StyleCSSType<'justifyContent'>;
15
+ alignContent?: StyleCSSType<'alignContent'>;
16
+ autoColumns?: StyleCSSType<'gridAutoColumns'>;
17
+ autoRows?: StyleCSSType<'gridAutoRows'>;
18
+ autoFlow?: StyleCSSType<'gridAutoFlow'>;
19
+ };
20
+ export declare type GridElementsProps = {
21
+ column?: StyleCSSType<'gridColumn'>;
22
+ row?: StyleCSSType<'gridRow'>;
23
+ area?: StyleCSSType<'gridArea'>;
24
+ justifySelf?: StyleCSSType<'justifySelf'>;
25
+ alignSelf?: StyleCSSType<'alignSelf'>;
26
+ };
27
+ export declare type GridProps = GridContainerProps & GridElementsProps & {
28
+ children?: React.ReactNode;
29
+ };
30
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseButtonProps } from '../ButtonBase';
3
+ export declare const IconButton: ({ children, ...props }: BaseButtonProps) => JSX.Element;
@@ -0,0 +1,28 @@
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 { StyledIconButton } from './styled';
25
+ export var IconButton = function (_a) {
26
+ var children = _a.children, props = __rest(_a, ["children"]);
27
+ return _jsx(StyledIconButton, __assign({}, props, { children: children }), void 0);
28
+ };
@@ -0,0 +1 @@
1
+ export * from './IconButton';
@@ -0,0 +1 @@
1
+ export * from './IconButton';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../theme';
3
+ import { ButtonProps } from '../Button';
4
+ declare type StyledIconButtonThemeProps = ButtonProps & {
5
+ theme: Theme;
6
+ };
7
+ export declare const getButtonHeight: ({ size, }: StyledIconButtonThemeProps) => string;
8
+ export declare const StyledIconButton: import("@emotion/styled").StyledComponent<Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "color" | "variant" | "size"> & {
9
+ color?: "primary" | "error" | "warning" | "success" | undefined;
10
+ variant?: "link" | "light" | "text" | "contained" | undefined;
11
+ size?: "large" | "medium" | undefined;
12
+ } & {
13
+ theme?: Theme | undefined;
14
+ } & {
15
+ loading?: boolean | undefined;
16
+ startIcon?: import("react").ReactNode;
17
+ endIcon?: import("react").ReactNode;
18
+ }, {}, {}>;
19
+ export {};
@@ -0,0 +1,21 @@
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 { styled } from '../styles';
6
+ import { ButtonBase, ButtonSizes } from '../ButtonBase';
7
+ export var getButtonHeight = function (_a) {
8
+ var size = _a.size;
9
+ if (size === ButtonSizes.LARGE)
10
+ return '40px';
11
+ return '32px';
12
+ };
13
+ export var StyledIconButton = styled(ButtonBase, {
14
+ shouldForwardProp: function (prop) {
15
+ return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
16
+ },
17
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n padding: ", ";\n"], ["\n height: ", ";\n width: ", ";\n padding: ", ";\n"])), getButtonHeight, getButtonHeight, function (_a) {
18
+ var theme = _a.theme;
19
+ return theme.spacing(1);
20
+ });
21
+ var templateObject_1;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuProps } from '@mui/material';
3
+ export declare const Menu: ({ children, ...props }: MenuProps) => JSX.Element;
@@ -0,0 +1,28 @@
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 { Menu as MuiMenu } from '@mui/material';
25
+ export var Menu = function (_a) {
26
+ var children = _a.children, props = __rest(_a, ["children"]);
27
+ return _jsx(MuiMenu, __assign({}, props, { children: children }), void 0);
28
+ };
@@ -0,0 +1 @@
1
+ export * from './Menu';
@@ -0,0 +1 @@
1
+ export * from './Menu';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuItemProps } from '@mui/material';
3
+ export declare const MenuItem: ({ children, ...props }: MenuItemProps) => JSX.Element;
@@ -0,0 +1,28 @@
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 { MenuItem as MuiMenuItem } from '@mui/material';
25
+ export var MenuItem = function (_a) {
26
+ var children = _a.children, props = __rest(_a, ["children"]);
27
+ return _jsx(MuiMenuItem, __assign({}, props, { children: children }), void 0);
28
+ };
@@ -0,0 +1 @@
1
+ export * from './MenuItem';
@@ -0,0 +1 @@
1
+ export * from './MenuItem';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MenuListProps } from './types';
3
+ export declare const MenuList: ({ children, ...props }: MenuListProps) => JSX.Element;
@@ -0,0 +1,28 @@
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 { StyledMenuList } from './styled';
25
+ export var MenuList = function (_a) {
26
+ var children = _a.children, props = __rest(_a, ["children"]);
27
+ return _jsx(StyledMenuList, __assign({}, props, { children: children }), void 0);
28
+ };
@@ -0,0 +1,2 @@
1
+ export * from './MenuList';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './MenuList';
2
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledMenuList: import("@emotion/styled").StyledComponent<{
3
+ autoFocus?: boolean | undefined;
4
+ autoFocusItem?: boolean | undefined;
5
+ children?: import("react").ReactNode;
6
+ disabledItemsFocusable?: boolean | undefined;
7
+ disableListWrap?: boolean | undefined;
8
+ variant?: "menu" | "selectedMenu" | undefined;
9
+ } & {
10
+ children?: import("react").ReactNode;
11
+ classes?: Partial<import("@mui/material").ListClasses> | undefined;
12
+ dense?: boolean | undefined;
13
+ disablePadding?: boolean | undefined;
14
+ subheader?: import("react").ReactNode;
15
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
16
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
17
+ ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
18
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "autoFocus" | "dense" | "subheader" | "disablePadding" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap"> & {
19
+ theme?: import("..").Theme | undefined;
20
+ }, {}, {}>;
@@ -0,0 +1,17 @@
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 { MenuList } from '@mui/material';
6
+ import { styled } from '../styles';
7
+ export var StyledMenuList = styled(MenuList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiList-root {\n padding: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n }\n"], ["\n &.MuiList-root {\n padding: ", ";\n border-radius: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.spacing(1, 0);
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.shape.small;
13
+ }, function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.elevation[200];
16
+ });
17
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ import { MenuListProps as MuiMenuListProps } from '@mui/material/MenuList';
2
+ export declare type MenuListProps = MuiMenuListProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { TagProps } from './types';
3
+ export declare const Tag: ({ color, variant, ...props }: TagProps) => JSX.Element;
@@ -0,0 +1,28 @@
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 { StyledTag } from './styled';
25
+ export var Tag = function (_a) {
26
+ var color = _a.color, variant = _a.variant, props = __rest(_a, ["color", "variant"]);
27
+ return _jsx(StyledTag, __assign({ customColor: color, customVariant: variant }, props), void 0);
28
+ };
@@ -0,0 +1,21 @@
1
+ export declare enum TagColors {
2
+ DEFAULT = "default",
3
+ PRIMARY = "primary",
4
+ ERROR = "error",
5
+ GREY = "grey",
6
+ SUCCESS = "success",
7
+ WARNING = "warning"
8
+ }
9
+ export declare enum TagVariants {
10
+ CONTAINED = "contained",
11
+ LIGHT = "light"
12
+ }
13
+ export declare enum TagSizes {
14
+ MEDIUM = "medium",
15
+ SMALL = "small"
16
+ }
17
+ export declare enum TagStates {
18
+ DEFAULT = "default",
19
+ HOVER = "hover",
20
+ ACTIVE = "active"
21
+ }
@@ -0,0 +1,25 @@
1
+ export var TagColors;
2
+ (function (TagColors) {
3
+ TagColors["DEFAULT"] = "default";
4
+ TagColors["PRIMARY"] = "primary";
5
+ TagColors["ERROR"] = "error";
6
+ TagColors["GREY"] = "grey";
7
+ TagColors["SUCCESS"] = "success";
8
+ TagColors["WARNING"] = "warning";
9
+ })(TagColors || (TagColors = {}));
10
+ export var TagVariants;
11
+ (function (TagVariants) {
12
+ TagVariants["CONTAINED"] = "contained";
13
+ TagVariants["LIGHT"] = "light";
14
+ })(TagVariants || (TagVariants = {}));
15
+ export var TagSizes;
16
+ (function (TagSizes) {
17
+ TagSizes["MEDIUM"] = "medium";
18
+ TagSizes["SMALL"] = "small";
19
+ })(TagSizes || (TagSizes = {}));
20
+ export var TagStates;
21
+ (function (TagStates) {
22
+ TagStates["DEFAULT"] = "default";
23
+ TagStates["HOVER"] = "hover";
24
+ TagStates["ACTIVE"] = "active";
25
+ })(TagStates || (TagStates = {}));
@@ -0,0 +1,2 @@
1
+ export * from './Tag';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './Tag';
2
+ export * from './types';
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../theme';
3
+ import { TagProps } from './types';
4
+ export declare const StyledTag: import("@emotion/styled").StyledComponent<{
5
+ avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
6
+ children?: null | undefined;
7
+ classes?: Partial<import("@mui/material").ChipClasses> | undefined;
8
+ clickable?: boolean | undefined;
9
+ color?: "primary" | "secondary" | "default" | "error" | "warning" | "info" | "success" | undefined;
10
+ deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
11
+ disabled?: boolean | undefined;
12
+ icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
13
+ label?: import("react").ReactNode;
14
+ onDelete?: ((event: any) => void) | undefined;
15
+ size?: "medium" | "small" | undefined;
16
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
17
+ variant?: "filled" | "outlined" | undefined;
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
+ }, "disabled" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "label" | "variant" | "size" | "icon" | "avatar" | "clickable" | "deleteIcon" | "onDelete"> & {
21
+ theme?: Theme | undefined;
22
+ } & Omit<TagProps, "color"> & {
23
+ customColor?: "primary" | "default" | "error" | "grey" | "warning" | "success" | undefined;
24
+ customVariant?: "light" | "contained" | undefined;
25
+ rounded?: boolean | undefined;
26
+ }, {}, {}>;
@@ -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 {};
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { Theme } from '../theme';
3
+ declare type Props = {
4
+ theme: Theme;
5
+ };
6
+ export declare const ThemeProvider: FC<Props>;
7
+ export {};