@popmenu/common-ui 0.126.1 → 0.126.2

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 (273) hide show
  1. package/build/cjs/components/Avatar/Avatar.d.ts +3 -0
  2. package/build/cjs/components/Avatar/AvatarProps.d.ts +22 -0
  3. package/build/cjs/components/Avatar/avatar.styles.d.ts +2 -0
  4. package/build/cjs/components/Avatar/index.d.ts +2 -0
  5. package/build/cjs/components/Avatar/util/useImageProps.d.ts +10 -0
  6. package/build/cjs/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -0
  7. package/build/cjs/components/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -0
  8. package/build/cjs/components/BrowserSilhouette/index.d.ts +1 -0
  9. package/build/cjs/components/Button/Button.d.ts +6 -0
  10. package/build/cjs/components/Button/ButtonProps.d.ts +11 -0
  11. package/build/cjs/components/Button/ButtonStyles.d.ts +2 -0
  12. package/build/cjs/components/Button/index.d.ts +2 -0
  13. package/build/cjs/components/Checkbox/Checkbox.d.ts +3 -0
  14. package/build/cjs/components/Checkbox/CheckboxProps.d.ts +7 -0
  15. package/build/cjs/components/Checkbox/index.d.ts +2 -0
  16. package/build/cjs/components/Chip/Chip.d.ts +6 -0
  17. package/build/cjs/components/Chip/ChipProps.d.ts +8 -0
  18. package/build/cjs/components/Chip/ChipStyles.d.ts +2 -0
  19. package/build/cjs/components/Chip/index.d.ts +2 -0
  20. package/build/cjs/components/CollapsibleText/CollapsibleText.d.ts +3 -0
  21. package/build/cjs/components/CollapsibleText/CollapsibleTextProps.d.ts +13 -0
  22. package/build/cjs/components/CollapsibleText/CollapsibleTextStyles.d.ts +5 -0
  23. package/build/cjs/components/CollapsibleText/index.d.ts +2 -0
  24. package/build/cjs/components/Divider/Divider.d.ts +3 -0
  25. package/build/cjs/components/Divider/DividerProps.d.ts +17 -0
  26. package/build/cjs/components/Divider/index.d.ts +2 -0
  27. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -0
  28. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -0
  29. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -0
  30. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -0
  31. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -0
  32. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -0
  33. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -0
  34. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -0
  35. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -0
  36. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -0
  37. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -0
  38. package/build/cjs/components/FollowerAuthenticationDialog/context.d.ts +4 -0
  39. package/build/cjs/components/FollowerAuthenticationDialog/index.d.ts +2 -0
  40. package/build/cjs/components/FollowerAuthenticationDialog/theme.d.ts +35 -0
  41. package/build/cjs/components/Icon/Icon.d.ts +4 -0
  42. package/build/cjs/components/Icon/IconProps.d.ts +17 -0
  43. package/build/cjs/components/Icon/IconStyles.d.ts +2 -0
  44. package/build/cjs/components/Icon/index.d.ts +2 -0
  45. package/build/cjs/components/IconButton/IconButton.d.ts +3 -0
  46. package/build/cjs/components/IconButton/IconButtonProps.d.ts +2 -0
  47. package/build/cjs/components/IconButton/index.d.ts +2 -0
  48. package/build/cjs/components/Link/Link.d.ts +11 -0
  49. package/build/cjs/components/Link/LinkStyles.d.ts +2 -0
  50. package/build/cjs/components/Link/index.d.ts +2 -0
  51. package/build/cjs/components/NumberField/NumberField.d.ts +3 -0
  52. package/build/cjs/components/NumberField/NumberFieldProps.d.ts +12 -0
  53. package/build/cjs/components/NumberField/NumberFieldStyles.d.ts +2 -0
  54. package/build/cjs/components/NumberField/index.d.ts +2 -0
  55. package/build/cjs/components/Paper/Paper.d.ts +6 -0
  56. package/build/cjs/components/Paper/index.d.ts +2 -0
  57. package/build/cjs/components/PaperContent/PaperContent.d.ts +2 -0
  58. package/build/cjs/components/PaperContent/index.d.ts +1 -0
  59. package/build/cjs/components/Radio/Radio.d.ts +3 -0
  60. package/build/cjs/components/Radio/RadioProps.d.ts +7 -0
  61. package/build/cjs/components/Radio/index.d.ts +2 -0
  62. package/build/cjs/components/SplitInput/SplitInput.d.ts +3 -0
  63. package/build/cjs/components/SplitInput/SplitInputProps.d.ts +20 -0
  64. package/build/cjs/components/SplitInput/SplitInputStyles.d.ts +2 -0
  65. package/build/cjs/components/SplitInput/index.d.ts +2 -0
  66. package/build/cjs/components/Switch/Switch.d.ts +3 -0
  67. package/build/cjs/components/Switch/SwitchProps.d.ts +7 -0
  68. package/build/cjs/components/Switch/index.d.ts +2 -0
  69. package/build/cjs/components/Switch/switch.styles.d.ts +2 -0
  70. package/build/cjs/components/TabPanel/TabPanel.d.ts +3 -0
  71. package/build/cjs/components/TabPanel/TabPanelProps.d.ts +3 -0
  72. package/build/cjs/components/TabPanel/index.d.ts +2 -0
  73. package/build/cjs/components/ToggleButton/ToggleButton.d.ts +3 -0
  74. package/build/cjs/components/ToggleButton/ToggleButtonProps.d.ts +4 -0
  75. package/build/cjs/components/ToggleButton/ToggleButtonStyles.d.ts +2 -0
  76. package/build/cjs/components/ToggleButton/index.d.ts +2 -0
  77. package/build/cjs/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
  78. package/build/cjs/components/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -0
  79. package/build/cjs/components/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -0
  80. package/build/cjs/components/ToggleButtonGroup/index.d.ts +2 -0
  81. package/build/cjs/components/Tooltip/Tooltip.d.ts +3 -0
  82. package/build/cjs/components/Tooltip/TooltipProps.d.ts +1 -0
  83. package/build/cjs/components/Tooltip/TooltipStyles.d.ts +2 -0
  84. package/build/cjs/components/Tooltip/index.d.ts +2 -0
  85. package/build/cjs/components/Typography/Typography.d.ts +9 -0
  86. package/build/cjs/components/Typography/TypographyProps.d.ts +14 -0
  87. package/build/cjs/components/Typography/TypographyStyles.d.ts +10 -0
  88. package/build/cjs/components/Typography/index.d.ts +2 -0
  89. package/build/cjs/components/index.d.ts +45 -0
  90. package/build/cjs/hooks/index.d.ts +2 -0
  91. package/build/cjs/hooks/useCollapsibleText.d.ts +9 -0
  92. package/build/cjs/hooks/useTabs/index.d.ts +1 -0
  93. package/build/cjs/hooks/useTabs/useTabs.d.ts +3 -0
  94. package/build/cjs/hooks/useTabs/useTabsOptions.d.ts +3 -0
  95. package/build/cjs/hooks/useTabs/useTabsResult.d.ts +22 -0
  96. package/build/cjs/index.d.ts +3 -0
  97. package/build/{index.js → cjs/index.js} +327 -396
  98. package/build/cjs/index.js.map +1 -0
  99. package/build/cjs/types/index.d.ts +2 -0
  100. package/build/cjs/util/colors/alpha.d.ts +1 -0
  101. package/build/cjs/util/colors/darken.d.ts +1 -0
  102. package/build/cjs/util/colors/decomposeColor.d.ts +1 -0
  103. package/build/cjs/util/colors/getLuminance.d.ts +1 -0
  104. package/build/cjs/util/colors/hexToRgb.d.ts +1 -0
  105. package/build/cjs/util/colors/index.d.ts +8 -0
  106. package/build/cjs/util/colors/lighten.d.ts +1 -0
  107. package/build/cjs/util/colors/recomposeColor.d.ts +1 -0
  108. package/build/cjs/util/colors/rgbToHex.d.ts +1 -0
  109. package/build/cjs/util/createTheme.d.ts +1 -0
  110. package/build/cjs/util/index.d.ts +4 -0
  111. package/build/cjs/util/makeStyles.d.ts +1 -0
  112. package/build/esm/components/Avatar/Avatar.js +3 -3
  113. package/build/esm/components/Avatar/Avatar.js.map +1 -1
  114. package/build/esm/components/Avatar/AvatarProps.d.ts +1 -1
  115. package/build/esm/components/Avatar/avatar.styles.js +1 -1
  116. package/build/esm/components/Avatar/avatar.styles.js.map +1 -1
  117. package/build/esm/components/Avatar/index.d.ts +2 -2
  118. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -1
  119. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +1 -1
  120. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -1
  121. package/build/esm/components/BrowserSilhouette/index.d.ts +1 -1
  122. package/build/esm/components/Button/Button.js +3 -5
  123. package/build/esm/components/Button/Button.js.map +1 -1
  124. package/build/esm/components/Button/ButtonProps.d.ts +1 -1
  125. package/build/esm/components/Button/ButtonStyles.js +1 -1
  126. package/build/esm/components/Button/ButtonStyles.js.map +1 -1
  127. package/build/esm/components/Button/index.d.ts +2 -2
  128. package/build/esm/components/Checkbox/Checkbox.js +2 -3
  129. package/build/esm/components/Checkbox/Checkbox.js.map +1 -1
  130. package/build/esm/components/Checkbox/CheckboxProps.d.ts +1 -2
  131. package/build/esm/components/Checkbox/index.d.ts +2 -2
  132. package/build/esm/components/Chip/Chip.js +3 -3
  133. package/build/esm/components/Chip/Chip.js.map +1 -1
  134. package/build/esm/components/Chip/ChipProps.d.ts +1 -1
  135. package/build/esm/components/Chip/ChipStyles.js +1 -1
  136. package/build/esm/components/Chip/ChipStyles.js.map +1 -1
  137. package/build/esm/components/Chip/index.d.ts +2 -2
  138. package/build/esm/components/CollapsibleText/CollapsibleText.js +1 -2
  139. package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -1
  140. package/build/esm/components/CollapsibleText/CollapsibleTextProps.d.ts +1 -1
  141. package/build/esm/components/CollapsibleText/index.d.ts +2 -2
  142. package/build/esm/components/Divider/Divider.js.map +1 -1
  143. package/build/esm/components/Divider/index.d.ts +2 -2
  144. package/build/esm/components/FollowerAuthenticationDialog/index.d.ts +1 -1
  145. package/build/esm/components/Icon/IconStyles.js +2 -0
  146. package/build/esm/components/Icon/IconStyles.js.map +1 -1
  147. package/build/esm/components/Icon/index.d.ts +2 -2
  148. package/build/esm/components/IconButton/IconButton.d.ts +1 -1
  149. package/build/esm/components/IconButton/IconButton.js +2 -2
  150. package/build/esm/components/IconButton/IconButton.js.map +1 -1
  151. package/build/esm/components/IconButton/IconButtonProps.d.ts +1 -1
  152. package/build/esm/components/IconButton/index.d.ts +2 -2
  153. package/build/esm/components/Link/LinkStyles.js +1 -1
  154. package/build/esm/components/Link/LinkStyles.js.map +1 -1
  155. package/build/esm/components/Link/index.d.ts +2 -2
  156. package/build/esm/components/NumberField/NumberField.js +1 -1
  157. package/build/esm/components/NumberField/NumberField.js.map +1 -1
  158. package/build/esm/components/NumberField/index.d.ts +1 -1
  159. package/build/esm/components/Paper/index.d.ts +2 -1
  160. package/build/esm/components/PaperContent/PaperContent.js.map +1 -1
  161. package/build/esm/components/PaperContent/index.d.ts +1 -1
  162. package/build/esm/components/Radio/Radio.js +2 -3
  163. package/build/esm/components/Radio/Radio.js.map +1 -1
  164. package/build/esm/components/Radio/RadioProps.d.ts +1 -2
  165. package/build/esm/components/Radio/index.d.ts +2 -2
  166. package/build/esm/components/SplitInput/SplitInput.js +1 -2
  167. package/build/esm/components/SplitInput/SplitInput.js.map +1 -1
  168. package/build/esm/components/SplitInput/SplitInputProps.d.ts +3 -3
  169. package/build/esm/components/SplitInput/SplitInputStyles.js +1 -1
  170. package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -1
  171. package/build/esm/components/SplitInput/index.d.ts +2 -2
  172. package/build/esm/components/Switch/Switch.js +2 -3
  173. package/build/esm/components/Switch/Switch.js.map +1 -1
  174. package/build/esm/components/Switch/SwitchProps.d.ts +1 -2
  175. package/build/esm/components/Switch/index.d.ts +2 -2
  176. package/build/esm/components/Switch/switch.styles.js +1 -1
  177. package/build/esm/components/Switch/switch.styles.js.map +1 -1
  178. package/build/esm/components/TabPanel/TabPanel.js.map +1 -1
  179. package/build/esm/components/TabPanel/index.d.ts +1 -1
  180. package/build/esm/components/ToggleButton/ToggleButton.js +2 -2
  181. package/build/esm/components/ToggleButton/ToggleButton.js.map +1 -1
  182. package/build/esm/components/ToggleButton/ToggleButtonProps.d.ts +1 -1
  183. package/build/esm/components/ToggleButton/ToggleButtonStyles.js +1 -1
  184. package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -1
  185. package/build/esm/components/ToggleButton/index.d.ts +2 -2
  186. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  187. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
  188. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +1 -1
  189. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +1 -1
  190. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -1
  191. package/build/esm/components/ToggleButtonGroup/index.d.ts +2 -2
  192. package/build/esm/components/Tooltip/Tooltip.d.ts +1 -1
  193. package/build/esm/components/Tooltip/Tooltip.js +2 -2
  194. package/build/esm/components/Tooltip/Tooltip.js.map +1 -1
  195. package/build/esm/components/Tooltip/TooltipProps.d.ts +1 -1
  196. package/build/esm/components/Tooltip/TooltipStyles.js +1 -1
  197. package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -1
  198. package/build/esm/components/Tooltip/index.d.ts +2 -2
  199. package/build/esm/components/Typography/Typography.d.ts +1 -1
  200. package/build/esm/components/Typography/TypographyProps.d.ts +1 -2
  201. package/build/esm/components/Typography/TypographyProps.js.map +1 -1
  202. package/build/esm/components/Typography/TypographyStyles.d.ts +1 -1
  203. package/build/esm/components/Typography/TypographyStyles.js +1 -1
  204. package/build/esm/components/Typography/TypographyStyles.js.map +1 -1
  205. package/build/esm/components/Typography/index.d.ts +2 -2
  206. package/build/esm/components/index.d.ts +45 -78
  207. package/build/esm/index.js +5 -37
  208. package/build/esm/index.js.map +1 -1
  209. package/build/esm/util/index.d.ts +1 -1
  210. package/package.json +3 -3
  211. package/build/esm/components/Accordion/index.d.ts +0 -1
  212. package/build/esm/components/AccordionActions/index.d.ts +0 -1
  213. package/build/esm/components/AccordionDetails/index.d.ts +0 -1
  214. package/build/esm/components/AccordionSummary/index.d.ts +0 -1
  215. package/build/esm/components/Alert/index.d.ts +0 -1
  216. package/build/esm/components/AppBar/index.d.ts +0 -1
  217. package/build/esm/components/Badge/index.d.ts +0 -1
  218. package/build/esm/components/Box/Box.d.ts +0 -3
  219. package/build/esm/components/Box/BoxProps.d.ts +0 -5
  220. package/build/esm/components/Box/BoxStyles.d.ts +0 -1
  221. package/build/esm/components/Box/index.d.ts +0 -7
  222. package/build/esm/components/Breadcrumbs/index.d.ts +0 -1
  223. package/build/esm/components/ButtonBase/index.d.ts +0 -1
  224. package/build/esm/components/ButtonGroup/index.d.ts +0 -1
  225. package/build/esm/components/Card/index.d.ts +0 -1
  226. package/build/esm/components/CardActionArea/index.d.ts +0 -1
  227. package/build/esm/components/CardActions/index.d.ts +0 -1
  228. package/build/esm/components/CardContent/index.d.ts +0 -1
  229. package/build/esm/components/CardHeader/index.d.ts +0 -1
  230. package/build/esm/components/CardMedia/index.d.ts +0 -1
  231. package/build/esm/components/CircularProgress/index.d.ts +0 -1
  232. package/build/esm/components/ClickAwayListener/index.d.ts +0 -1
  233. package/build/esm/components/Dialog/index.d.ts +0 -1
  234. package/build/esm/components/DialogActions/index.d.ts +0 -1
  235. package/build/esm/components/DialogContent/index.d.ts +0 -1
  236. package/build/esm/components/DialogContentText/index.d.ts +0 -1
  237. package/build/esm/components/DialogTitle/index.d.ts +0 -1
  238. package/build/esm/components/Drawer/index.d.ts +0 -1
  239. package/build/esm/components/Fab/index.d.ts +0 -1
  240. package/build/esm/components/FormControl/index.d.ts +0 -1
  241. package/build/esm/components/FormControlLabel/index.d.ts +0 -1
  242. package/build/esm/components/FormLabel/index.d.ts +0 -1
  243. package/build/esm/components/Grid/index.d.ts +0 -1
  244. package/build/esm/components/GridList/index.d.ts +0 -1
  245. package/build/esm/components/Hidden/index.d.ts +0 -1
  246. package/build/esm/components/InputAdornment/index.d.ts +0 -1
  247. package/build/esm/components/LinearProgress/index.d.ts +0 -1
  248. package/build/esm/components/List/index.d.ts +0 -1
  249. package/build/esm/components/ListItem/index.d.ts +0 -1
  250. package/build/esm/components/ListItemAvatar/index.d.ts +0 -1
  251. package/build/esm/components/ListItemIcon/index.d.ts +0 -1
  252. package/build/esm/components/ListItemSecondaryAction/index.d.ts +0 -1
  253. package/build/esm/components/ListItemText/index.d.ts +0 -1
  254. package/build/esm/components/Menu/index.d.ts +0 -1
  255. package/build/esm/components/MenuItem/index.d.ts +0 -1
  256. package/build/esm/components/MenuList/index.d.ts +0 -1
  257. package/build/esm/components/Modal/index.d.ts +0 -1
  258. package/build/esm/components/Popover/index.d.ts +0 -1
  259. package/build/esm/components/Popper/index.d.ts +0 -1
  260. package/build/esm/components/Step/index.d.ts +0 -1
  261. package/build/esm/components/StepButton/index.d.ts +0 -1
  262. package/build/esm/components/StepConnector/index.d.ts +0 -1
  263. package/build/esm/components/StepContent/index.d.ts +0 -1
  264. package/build/esm/components/StepIcon/index.d.ts +0 -1
  265. package/build/esm/components/StepLabel/index.d.ts +0 -1
  266. package/build/esm/components/Stepper/index.d.ts +0 -1
  267. package/build/esm/components/Tab/index.d.ts +0 -1
  268. package/build/esm/components/Tabs/index.d.ts +0 -1
  269. package/build/esm/components/TextField/index.d.ts +0 -1
  270. package/build/esm/components/ThemeProvider/index.d.ts +0 -1
  271. package/build/esm/components/Toolbar/index.d.ts +0 -1
  272. package/build/esm/util/ServerStyleSheets.d.ts +0 -1
  273. package/build/index.js.map +0 -1
@@ -1,9 +1,8 @@
1
1
  import { TypographyProps as MuiTypographyProps, TypographyTypeMap } from '@material-ui/core';
2
- import { Variant } from '@material-ui/core/styles/createTypography';
3
2
  import React, { RefObject } from 'react';
4
3
  export declare type ThemeColors = 'primary.light' | 'primary' | 'primary.dark' | 'secondary.light' | 'secondary' | 'secondary.dark' | 'info.light' | 'info' | 'info.dark' | 'success.light' | 'success' | 'success.dark' | 'error.light' | 'error' | 'error.dark' | 'warning.light' | 'warning' | 'warning.dark' | 'white' | 'black' | 'grey.100' | 'grey.200' | 'grey.300' | 'grey.400' | 'grey.500' | 'grey.600' | 'grey.700' | 'grey.800' | 'grey.900' | 'textPrimary' | 'textSecondary';
5
4
  export declare const defaultTypographyProps: {
6
- variant: Variant;
5
+ variant: "body1";
7
6
  };
8
7
  export declare type DefaultTypographyComponent = TypographyTypeMap['defaultComponent'];
9
8
  export declare type TypographyProps<C extends React.ElementType = DefaultTypographyComponent> = Omit<MuiTypographyProps<C, {
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyProps.js","sources":["../../../../src/components/Typography/TypographyProps.ts"],"sourcesContent":["import { TypographyProps as MuiTypographyProps, TypographyTypeMap } from '@material-ui/core'\nimport { Variant } from '@material-ui/core/styles/createTypography'\nimport React, { RefObject } from 'react'\n\nexport type ThemeColors =\n | 'primary.light'\n | 'primary'\n | 'primary.dark'\n | 'secondary.light'\n | 'secondary'\n | 'secondary.dark'\n | 'info.light'\n | 'info'\n | 'info.dark'\n | 'success.light'\n | 'success'\n | 'success.dark'\n | 'error.light'\n | 'error'\n | 'error.dark'\n | 'warning.light'\n | 'warning'\n | 'warning.dark'\n | 'white'\n | 'black'\n | 'grey.100'\n | 'grey.200'\n | 'grey.300'\n | 'grey.400'\n | 'grey.500'\n | 'grey.600'\n | 'grey.700'\n | 'grey.800'\n | 'grey.900'\n | 'textPrimary'\n | 'textSecondary'\n\nexport const defaultTypographyProps = {\n variant: 'body1' as Variant,\n}\n\nexport type DefaultTypographyComponent = TypographyTypeMap['defaultComponent']\n\nexport type TypographyProps<C extends React.ElementType = DefaultTypographyComponent> = Omit<\n MuiTypographyProps<C, { component?: C }>,\n 'color' | 'ref'\n> & {\n TypographyRef?: RefObject<HTMLParagraphElement | HTMLHeadingElement | HTMLSpanElement>\n color?: ThemeColors\n weight?: 'regular' | 'medium' | 'semi-bold' | 'bold'\n}\n"],"names":[],"mappings":"AAqCa,IAAA,sBAAsB,GAAG;AACpC,IAAA,OAAO,EAAE,OAAkB;;;;;"}
1
+ {"version":3,"file":"TypographyProps.js","sources":["../../../../src/components/Typography/TypographyProps.ts"],"sourcesContent":["import { TypographyProps as MuiTypographyProps, TypographyTypeMap } from '@material-ui/core'\nimport React, { RefObject } from 'react'\n\nexport type ThemeColors =\n | 'primary.light'\n | 'primary'\n | 'primary.dark'\n | 'secondary.light'\n | 'secondary'\n | 'secondary.dark'\n | 'info.light'\n | 'info'\n | 'info.dark'\n | 'success.light'\n | 'success'\n | 'success.dark'\n | 'error.light'\n | 'error'\n | 'error.dark'\n | 'warning.light'\n | 'warning'\n | 'warning.dark'\n | 'white'\n | 'black'\n | 'grey.100'\n | 'grey.200'\n | 'grey.300'\n | 'grey.400'\n | 'grey.500'\n | 'grey.600'\n | 'grey.700'\n | 'grey.800'\n | 'grey.900'\n | 'textPrimary'\n | 'textSecondary'\n\nexport const defaultTypographyProps = {\n variant: 'body1' as const,\n}\n\nexport type DefaultTypographyComponent = TypographyTypeMap['defaultComponent']\n\nexport type TypographyProps<C extends React.ElementType = DefaultTypographyComponent> = Omit<\n MuiTypographyProps<C, { component?: C }>,\n 'color' | 'ref'\n> & {\n TypographyRef?: RefObject<HTMLParagraphElement | HTMLHeadingElement | HTMLSpanElement>\n color?: ThemeColors\n weight?: 'regular' | 'medium' | 'semi-bold' | 'bold'\n}\n"],"names":[],"mappings":"AAoCa,IAAA,sBAAsB,GAAG;AACpC,IAAA,OAAO,EAAE,OAAgB;;;;;"}
@@ -6,5 +6,5 @@ export declare const useTypographyStyles: (props: Omit<import("@material-ui/core
6
6
  color?: import("./TypographyProps").ThemeColors | undefined;
7
7
  weight?: "medium" | "bold" | "regular" | "semi-bold" | undefined;
8
8
  } & {
9
- variant: import("@material-ui/core/styles").TypographyVariant;
9
+ variant: "body1";
10
10
  }) => import("@material-ui/styles").ClassNameMap<string>;
@@ -1,4 +1,4 @@
1
- import { makeStyles } from '@material-ui/core/styles';
1
+ import { makeStyles } from '@material-ui/core';
2
2
  import { iconStaticClassName } from '../Icon/Icon.js';
3
3
 
4
4
  var weights = {
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyStyles.js","sources":["../../../../src/components/Typography/TypographyStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\n\nimport { TypographyProps, defaultTypographyProps } from './TypographyProps'\nimport { iconStaticClassName } from '../Icon'\n\nconst weights = {\n regular: 400,\n medium: 500,\n 'semi-bold': 600,\n bold: 700,\n}\n\nconst getCustomColor = (theme: Theme, color: string) => {\n const isCommonColor = color && ['white', 'black'].includes(color)\n const isGreyColor = color && color.match(/^grey\\.\\d{3}/)\n const isSemanticColor = color && color.match(/(primary|secondary|info|success|error|warning).?(light|dark)?/)\n const isTextColor = color && ['textPrimary', 'textSecondary'].includes(color)\n switch (true) {\n case isCommonColor:\n // @ts-expect-error - todo.\n return theme.palette.common[color]\n case Boolean(isGreyColor):\n const scale = color.split('.')[1]\n // @ts-expect-error - todo.\n return theme.palette.grey[scale] || theme.palette.grey[900]\n case Boolean(isSemanticColor):\n const [paletteKey, variant = 'main'] = color.split('.')\n // @ts-expect-error - todo.\n return theme.palette[paletteKey][variant]\n case isTextColor:\n // @ts-expect-error - todo.\n return theme.palette.text[color.slice(4).toLowerCase()]\n default:\n return undefined\n }\n}\n\nexport const useTypographyStyles = makeStyles<Theme, TypographyProps & typeof defaultTypographyProps>((theme) => ({\n root: {\n [`& .${iconStaticClassName}`]: {\n position: 'relative',\n top: '0.125em',\n padding: '0 0.125em',\n boxSizing: 'content-box',\n },\n fontFamily: theme.typography.fontFamily,\n fontWeight: ({ variant, weight }) => (weight ? weights[weight] : theme.typography[variant].fontWeight),\n fontSize: ({ variant }) => theme.typography[variant].fontSize,\n lineHeight: ({ variant }) => theme.typography[variant].lineHeight,\n textTransform: ({ variant }) => theme.typography[variant].textTransform,\n color: ({ color, variant }) => (color && getCustomColor(theme, color)) || theme.typ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AC,EAAW,EAAA;AAAT,gBAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa;aAAA;YACvE,EAAK,CAAA,KAAA,GAAE,UAAC,EAAkB,EAAA;oBAAhB,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK;aAAA;AAC1G,YAAA,EAAA,CAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;KACF;AArBgH,CAqB/G;;;;"}
1
+ {"version":3,"file":"TypographyStyles.js","sources":["../../../../src/components/Typography/TypographyStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { iconStaticClassName } from '../Icon'\nimport { defaultTypographyProps, TypographyProps } from './TypographyProps'\n\nconst weights = {\n regular: 400,\n medium: 500,\n 'semi-bold': 600,\n bold: 700,\n}\n\nconst getCustomColor = (theme: Theme, color: string) => {\n const isCommonColor = color && ['white', 'black'].includes(color)\n const isGreyColor = color && color.match(/^grey\\.\\d{3}/)\n const isSemanticColor = color && color.match(/(primary|secondary|info|success|error|warning).?(light|dark)?/)\n const isTextColor = color && ['textPrimary', 'textSecondary'].includes(color)\n switch (true) {\n case isCommonColor:\n // @ts-expect-error - todo.\n return theme.palette.common[color]\n case Boolean(isGreyColor):\n const scale = color.split('.')[1]\n // @ts-expect-error - todo.\n return theme.palette.grey[scale] || theme.palette.grey[900]\n case Boolean(isSemanticColor):\n const [paletteKey, variant = 'main'] = color.split('.')\n // @ts-expect-error - todo.\n return theme.palette[paletteKey][variant]\n case isTextColor:\n // @ts-expect-error - todo.\n return theme.palette.text[color.slice(4).toLowerCase()]\n default:\n return undefined\n }\n}\n\nexport const useTypographyStyles = makeStyles<Theme, TypographyProps & typeof defaultTypographyProps>((theme) => ({\n root: {\n [`& .${iconStaticClassName}`]: {\n position: 'relative',\n top: '0.125em',\n padding: '0 0.125em',\n boxSizing: 'content-box',\n },\n fontFamily: theme.typography.fontFamily,\n fontWeight: ({ variant, weight }) => (weight ? weights[weight] : theme.typography[variant].fontWeight),\n fontSize: ({ variant }) => theme.typography[variant].fontSize,\n lineHeight: ({ variant }) => theme.typography[variant].lineHeight,\n textTransform: ({ variant }) => theme.typography[variant].textTransform,\n color: ({ color, variant }) => (color && getCustomColor(theme, color)) || theme.typography[variant].color,\n },\n caption: {\n display: 'inline',\n },\n overline: {\n display: 'inline',\n },\n}))\n"],"names":[],"mappings":";;;AAKA,IAAM,OAAO,GAAG;AACd,IAAA,OAAO,EAAE,GAAG;AACZ,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,WAAW,EAAE,GAAG;AAChB,IAAA,IAAI,EAAE,GAAG;CACV;AAED,IAAM,cAAc,GAAG,UAAC,KAAY,EAAE,KAAa,EAAA;AACjD,IAAA,IAAM,aAAa,GAAG,KAAK,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;IACjE,IAAM,WAAW,GAAG,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC;IACxD,IAAM,eAAe,GAAG,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,+DAA+D,CAAC;AAC7G,IAAA,IAAM,WAAW,GAAG,KAAK,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;AAC7E,IAAA,QAAQ,IAAI;AACV,QAAA,KAAK,aAAa;;YAEhB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;QACpC,KAAK,OAAO,CAAC,W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AO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU;aAAC;YACtG,EAAQ,CAAA,QAAA,GAAE,UAAC,EAAW,EAAA;AAAT,gBAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ;aAAA;YAC7D,EAAU,CAAA,UAAA,GAAE,UAAC,EAAW,EAAA;AAAT,gBAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU;aAAA;YACjE,EAAa,CAAA,aAAA,GAAE,UAAC,EAAW,EAAA;AAAT,gBAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa;aAAA;YACvE,EAAK,CAAA,KAAA,GAAE,UAAC,EAAkB,EAAA;oBAAhB,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,gBAAA,OAAA,CAAC,KAAK,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK;aAAA;AAC1G,YAAA,EAAA,CAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,OAAO,EAAE,QAAQ;AAClB,SAAA;KACF;AArBgH,CAqB/G;;;;"}
@@ -1,2 +1,2 @@
1
- export { Typography as default } from './Typography';
2
- export { TypographyProps, ThemeColors } from './TypographyProps';
1
+ export { Typography } from './Typography';
2
+ export type { ThemeColors, TypographyProps } from './TypographyProps';
@@ -1,78 +1,45 @@
1
- export { default as Alert, AlertProps } from './Alert';
2
- export { default as Accordion, AccordionProps } from './Accordion';
3
- export { default as AccordionActions, AccordionActionsProps } from './AccordionActions';
4
- export { default as AccordionDetails, AccordionDetailsProps } from './AccordionDetails';
5
- export { default as AccordionSummary, AccordionSummaryProps } from './AccordionSummary';
6
- export { default as AppBar, AppBarProps } from './AppBar';
7
- export { default as Avatar, AvatarProps } from './Avatar';
8
- export { default as Badge, BadgeProps } from './Badge';
9
- export { default as Box, BoxProps } from './Box';
10
- export { default as BrowserSilhouette } from './BrowserSilhouette';
11
- export { default as Breadcrumbs, BreadcrumbsProps } from './Breadcrumbs';
12
- export { default as Button, ButtonProps } from './Button';
13
- export { default as ButtonBase, ButtonBaseProps } from './ButtonBase';
14
- export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
15
- export { default as Card, CardProps } from './Card';
16
- export { default as CardActionArea, CardActionAreaProps } from './CardActionArea';
17
- export { default as CardActions, CardActionsProps } from './CardActions';
18
- export { default as CardContent, CardContentProps } from './CardContent';
19
- export { default as CardHeader, CardHeaderProps } from './CardHeader';
20
- export { default as CardMedia, CardMediaProps } from './CardMedia';
21
- export { default as Checkbox, CheckboxProps } from './Checkbox';
22
- export { default as Chip, ChipProps } from './Chip';
23
- export { default as CircularProgress, CircularProgressProps } from './CircularProgress';
24
- export { default as ClickAwayListener, ClickAwayListenerProps } from './ClickAwayListener';
25
- export { default as CollapsibleText, CollapsibleTextProps } from './CollapsibleText';
26
- export { default as Dialog, DialogProps } from './Dialog';
27
- export { default as DialogActions, DialogActionsProps } from './DialogActions';
28
- export { default as DialogContent, DialogContentProps } from './DialogContent';
29
- export { default as DialogTitle, DialogTitleProps } from './DialogTitle';
30
- export { default as Divider, DividerProps } from './Divider';
31
- export { default as Drawer, DrawerProps } from './Drawer';
32
- export { default as Fab, FabProps } from './Fab';
33
- export { default as FormControl, FormControlProps } from './FormControl';
34
- export { default as FormControlLabel, FormControlLabelProps } from './FormControlLabel';
35
- export { default as Grid, GridProps } from './Grid';
36
- export { default as GridList, GridListProps } from './GridList';
37
- export { default as Hidden, HiddenProps } from './Hidden';
38
- export { default as Icon, IconProps } from './Icon';
39
- export { default as IconButton, IconButtonProps } from './IconButton';
40
- export { default as InputAdornment, InputAdornmentProps } from './InputAdornment';
41
- export { default as LinearProgress, LinearProgressProps } from './LinearProgress';
42
- export { default as Link, LinkProps } from './Link';
43
- export { default as List, ListProps } from './List';
44
- export { default as ListItem, ListItemProps } from './ListItem';
45
- export { default as ListItemAvatar, ListItemAvatarProps } from './ListItemAvatar';
46
- export { default as ListItemIcon, ListItemIconProps } from './ListItemIcon';
47
- export { default as ListItemSecondaryAction, ListItemSecondaryActionProps } from './ListItemSecondaryAction';
48
- export { default as ListItemText, ListItemTextProps } from './ListItemText';
49
- export { default as Menu, MenuProps } from './Menu';
50
- export { default as MenuItem, MenuItemProps } from './MenuItem';
51
- export { default as MenuList, MenuListProps } from './MenuList';
52
- export { default as Modal, ModalProps } from './Modal';
53
- export { default as Paper, PaperProps } from './Paper';
54
- export { default as PaperContent } from './PaperContent';
55
- export { default as Popover, PopoverProps } from './Popover';
56
- export { default as Popper, PopperProps } from './Popper';
57
- export { default as Radio, RadioProps } from './Radio';
58
- export { default as Step, StepProps } from './Step';
59
- export { default as StepButton, StepButtonProps } from './StepButton';
60
- export { default as StepConnector, StepConnectorProps } from './StepConnector';
61
- export { default as StepContent, StepContentProps } from './StepContent';
62
- export { default as StepIcon, StepIconProps } from './StepIcon';
63
- export { default as StepLabel, StepLabelProps } from './StepLabel';
64
- export { default as Stepper, StepperProps } from './Stepper';
65
- export { default as SplitInput, SplitInputProps } from './SplitInput';
66
- export { default as Switch, SwitchProps } from './Switch';
67
- export { default as Tab, TabProps } from './Tab';
68
- export { default as Tabs, TabsProps } from './Tabs';
69
- export { TabPanel, TabPanelProps } from './TabPanel';
70
- export { default as TextField, TextFieldProps } from './TextField';
71
- export { default as ThemeProvider, ThemeProviderProps } from './ThemeProvider';
72
- export { default as ToggleButton, ToggleButtonProps } from './ToggleButton';
73
- export { default as ToggleButtonGroup, ToggleButtonGroupProps } from './ToggleButtonGroup';
74
- export { default as Toolbar, ToolbarProps } from './Toolbar';
75
- export { default as Tooltip, TooltipProps } from './Tooltip';
76
- export { default as Typography, TypographyProps, ThemeColors } from './Typography';
77
- export { NumberField, NumberFieldProps } from './NumberField';
78
- export { FollowerAuthenticationDialog, FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialog';
1
+ export * from '@material-ui/core';
2
+ export { Alert, AlertTitle, Autocomplete, AvatarGroup, Pagination, PaginationItem, Rating, Skeleton, SpeedDial, SpeedDialAction, SpeedDialIcon, TabContext, TabList, Timeline, TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator, TreeItem, TreeView, useAutocomplete, } from '@material-ui/lab';
3
+ export type { AlertProps, AlertTitleProps, AutocompleteProps, AvatarGroupProps, PaginationItemProps, PaginationProps, RatingProps, SkeletonProps, SpeedDialActionProps, SpeedDialIconProps, SpeedDialProps, TabContextProps, TabListProps, TimelineConnectorProps, TimelineContentProps, TimelineDotProps, TimelineItemProps, TimelineOppositeContentProps, TimelineProps, TimelineSeparatorProps, TreeItemProps, TreeViewProps, } from '@material-ui/lab';
4
+ export { Avatar } from './Avatar';
5
+ export type { AvatarProps } from './Avatar';
6
+ export { BrowserSilhouette } from './BrowserSilhouette';
7
+ export { Button } from './Button';
8
+ export type { ButtonProps } from './Button';
9
+ export { Checkbox } from './Checkbox';
10
+ export type { CheckboxProps } from './Checkbox';
11
+ export { Chip } from './Chip';
12
+ export type { ChipProps } from './Chip';
13
+ export { CollapsibleText } from './CollapsibleText';
14
+ export type { CollapsibleTextProps } from './CollapsibleText';
15
+ export { Divider } from './Divider';
16
+ export type { DividerProps } from './Divider';
17
+ export { FollowerAuthenticationDialog } from './FollowerAuthenticationDialog';
18
+ export type { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialog';
19
+ export { Icon } from './Icon';
20
+ export type { IconProps } from './Icon';
21
+ export { IconButton } from './IconButton';
22
+ export type { IconButtonProps } from './IconButton';
23
+ export { Link } from './Link';
24
+ export type { LinkProps } from './Link';
25
+ export { NumberField } from './NumberField';
26
+ export type { NumberFieldProps } from './NumberField';
27
+ export { Paper } from './Paper';
28
+ export type { PaperProps } from './Paper';
29
+ export { PaperContent } from './PaperContent';
30
+ export { Radio } from './Radio';
31
+ export type { RadioProps } from './Radio';
32
+ export { SplitInput } from './SplitInput';
33
+ export type { SplitInputProps } from './SplitInput';
34
+ export { Switch } from './Switch';
35
+ export type { SwitchProps } from './Switch';
36
+ export { TabPanel } from './TabPanel';
37
+ export type { TabPanelProps } from './TabPanel';
38
+ export { ToggleButton } from './ToggleButton';
39
+ export type { ToggleButtonProps } from './ToggleButton';
40
+ export { ToggleButtonGroup } from './ToggleButtonGroup';
41
+ export type { ToggleButtonGroupProps } from './ToggleButtonGroup';
42
+ export { Tooltip } from './Tooltip';
43
+ export type { TooltipProps } from './Tooltip';
44
+ export { Typography } from './Typography';
45
+ export type { ThemeColors, TypographyProps } from './Typography';
@@ -1,60 +1,28 @@
1
- export { default as Alert } from '@material-ui/lab/Alert';
2
- export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Box, Breadcrumbs, ButtonBase, ClickAwayListener, Fab, GridList, Hidden, Modal, Popover, Popper, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, ThemeProvider, Toolbar, alpha, createTheme, darken, decomposeColor, getLuminance, hexToRgb, lighten, makeStyles, recomposeColor, rgbToHex } from '@material-ui/core';
3
- export { default as AppBar } from '@material-ui/core/AppBar';
1
+ export * from '@material-ui/core';
2
+ export { ServerStyleSheets, alpha, createTheme, darken, decomposeColor, getLuminance, hexToRgb, lighten, makeStyles, recomposeColor, rgbToHex } from '@material-ui/core';
3
+ export { Alert, AlertTitle, Autocomplete, AvatarGroup, Pagination, PaginationItem, Rating, Skeleton, SpeedDial, SpeedDialAction, SpeedDialIcon, TabContext, TabList, Timeline, TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator, TreeItem, TreeView, useAutocomplete } from '@material-ui/lab';
4
4
  export { Avatar } from './components/Avatar/Avatar.js';
5
- export { default as Badge } from '@material-ui/core/Badge';
6
5
  export { BrowserSilhouette } from './components/BrowserSilhouette/BrowserSilhouette.js';
7
6
  export { Button } from './components/Button/Button.js';
8
- export { default as ButtonGroup } from '@material-ui/core/ButtonGroup';
9
- export { default as Card } from '@material-ui/core/Card';
10
- export { default as CardActionArea } from '@material-ui/core/CardActionArea';
11
- export { default as CardActions } from '@material-ui/core/CardActions';
12
- export { default as CardContent } from '@material-ui/core/CardContent';
13
- export { default as CardHeader } from '@material-ui/core/CardHeader';
14
- export { default as CardMedia } from '@material-ui/core/CardMedia';
15
7
  export { Checkbox } from './components/Checkbox/Checkbox.js';
16
8
  export { Chip } from './components/Chip/Chip.js';
17
- export { default as CircularProgress } from '@material-ui/core/CircularProgress';
18
9
  export { CollapsibleText } from './components/CollapsibleText/CollapsibleText.js';
19
- export { default as Dialog } from '@material-ui/core/Dialog';
20
- export { default as DialogActions } from '@material-ui/core/DialogActions';
21
- export { default as DialogContent } from '@material-ui/core/DialogContent';
22
- export { default as DialogTitle } from '@material-ui/core/DialogTitle';
23
10
  export { Divider } from './components/Divider/Divider.js';
24
- export { default as Drawer } from '@material-ui/core/Drawer';
25
- export { default as FormControl } from '@material-ui/core/FormControl';
26
- export { default as FormControlLabel } from '@material-ui/core/FormControlLabel';
27
- export { default as Grid } from '@material-ui/core/Grid';
11
+ export { FollowerAuthenticationDialog } from './components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js';
28
12
  export { Icon } from './components/Icon/Icon.js';
29
13
  export { IconButton } from './components/IconButton/IconButton.js';
30
- export { default as InputAdornment } from '@material-ui/core/InputAdornment';
31
- export { default as LinearProgress } from '@material-ui/core/LinearProgress';
32
14
  export { Link } from './components/Link/Link.js';
33
- export { default as List } from '@material-ui/core/List';
34
- export { default as ListItem } from '@material-ui/core/ListItem';
35
- export { default as ListItemAvatar } from '@material-ui/core/ListItemAvatar';
36
- export { default as ListItemIcon } from '@material-ui/core/ListItemIcon';
37
- export { default as ListItemSecondaryAction } from '@material-ui/core/ListItemSecondaryAction';
38
- export { default as ListItemText } from '@material-ui/core/ListItemText';
39
- export { default as Menu } from '@material-ui/core/Menu';
40
- export { default as MenuItem } from '@material-ui/core/MenuItem';
41
- export { default as MenuList } from '@material-ui/core/MenuList';
15
+ export { NumberField } from './components/NumberField/NumberField.js';
42
16
  export { Paper } from './components/Paper/Paper.js';
43
17
  export { PaperContent } from './components/PaperContent/PaperContent.js';
44
18
  export { Radio } from './components/Radio/Radio.js';
45
19
  export { SplitInput } from './components/SplitInput/SplitInput.js';
46
20
  export { Switch } from './components/Switch/Switch.js';
47
- export { default as Tab } from '@material-ui/core/Tab';
48
- export { default as Tabs } from '@material-ui/core/Tabs';
49
21
  export { TabPanel } from './components/TabPanel/TabPanel.js';
50
- export { default as TextField } from '@material-ui/core/TextField';
51
22
  export { ToggleButton } from './components/ToggleButton/ToggleButton.js';
52
23
  export { ToggleButtonGroup } from './components/ToggleButtonGroup/ToggleButtonGroup.js';
53
24
  export { Tooltip } from './components/Tooltip/Tooltip.js';
54
25
  export { Typography } from './components/Typography/Typography.js';
55
- export { NumberField } from './components/NumberField/NumberField.js';
56
- export { FollowerAuthenticationDialog } from './components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js';
57
26
  export { useCollapsibleText } from './hooks/useCollapsibleText.js';
58
27
  export { useTabs } from './hooks/useTabs/useTabs.js';
59
- export { ServerStyleSheets } from '@material-ui/core/styles';
60
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
+ export { ServerStyleSheets } from '@material-ui/core';
1
2
  export * from './colors';
2
3
  export { createTheme } from './createTheme';
3
4
  export { makeStyles } from './makeStyles';
4
- export { ServerStyleSheets } from './ServerStyleSheets';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@popmenu/common-ui",
3
- "version": "0.126.1",
3
+ "version": "0.126.2",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components for all Popmenu apps on the web.",
7
- "main": "./build/index.js",
7
+ "main": "./build/cjs/index.js",
8
8
  "module": "./build/esm/index.js",
9
9
  "types": "./build/esm/index.d.ts",
10
10
  "type": "module",
@@ -30,5 +30,5 @@
30
30
  "react": "17.x"
31
31
  },
32
32
  "sideEffects": false,
33
- "gitHead": "0c346e293dc09a195a490762b321f9c1e9a65f5b"
33
+ "gitHead": "1cfb282646479bcc4baa627d2b2dfdd20b75a63d"
34
34
  }
@@ -1 +0,0 @@
1
- export { Accordion as default, AccordionProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { AccordionActions as default, AccordionActionsProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { AccordionDetails as default, AccordionDetailsProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { AccordionSummary as default, AccordionSummaryProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, AlertProps } from '@material-ui/lab/Alert';
@@ -1 +0,0 @@
1
- export { default, AppBarProps } from '@material-ui/core/AppBar';
@@ -1 +0,0 @@
1
- export { default, BadgeProps } from '@material-ui/core/Badge';
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { BoxProps } from './BoxProps';
3
- export declare const Box: FC<BoxProps>;
@@ -1,5 +0,0 @@
1
- import { BoxProps as MuiBoxProps } from '@material-ui/core';
2
- export interface BoxProps extends MuiBoxProps {
3
- /** Sets the css gap property using thematic spacing units. */
4
- gap?: number;
5
- }
@@ -1 +0,0 @@
1
- export declare const useBoxStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
@@ -1,7 +0,0 @@
1
- /**
2
- * Using the customized Box component in Popmenu repo breaks Cypress tests.
3
- * Many tests fail for TypeError around ResizeObserver
4
- * export { Box as default } from './Box'
5
- * export { BoxProps } from './BoxProps'
6
- */
7
- export { Box as default, BoxProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Breadcrumbs as default, BreadcrumbsProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { ButtonBase as default, ButtonBaseProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, ButtonGroupProps } from '@material-ui/core/ButtonGroup';
@@ -1 +0,0 @@
1
- export { default, CardProps } from '@material-ui/core/Card';
@@ -1 +0,0 @@
1
- export { default, CardActionAreaProps } from '@material-ui/core/CardActionArea';
@@ -1 +0,0 @@
1
- export { default, CardActionsProps } from '@material-ui/core/CardActions';
@@ -1 +0,0 @@
1
- export { default, CardContentProps } from '@material-ui/core/CardContent';
@@ -1 +0,0 @@
1
- export { default, CardHeaderProps } from '@material-ui/core/CardHeader';
@@ -1 +0,0 @@
1
- export { default, CardMediaProps } from '@material-ui/core/CardMedia';
@@ -1 +0,0 @@
1
- export { default, CircularProgressProps } from '@material-ui/core/CircularProgress';
@@ -1 +0,0 @@
1
- export { ClickAwayListener as default, ClickAwayListenerProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, DialogProps } from '@material-ui/core/Dialog';
@@ -1 +0,0 @@
1
- export { default, DialogActionsProps } from '@material-ui/core/DialogActions';
@@ -1 +0,0 @@
1
- export { default, DialogContentProps } from '@material-ui/core/DialogContent';
@@ -1 +0,0 @@
1
- export { default, DialogContentTextProps } from '@material-ui/core/DialogContentText';
@@ -1 +0,0 @@
1
- export { default, DialogTitleProps } from '@material-ui/core/DialogTitle';
@@ -1 +0,0 @@
1
- export { default, DrawerProps } from '@material-ui/core/Drawer';
@@ -1 +0,0 @@
1
- export { Fab as default, FabProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, FormControlProps } from '@material-ui/core/FormControl';
@@ -1 +0,0 @@
1
- export { default, FormControlLabelProps } from '@material-ui/core/FormControlLabel';
@@ -1 +0,0 @@
1
- export { default, FormLabelProps } from '@material-ui/core/FormLabel';
@@ -1 +0,0 @@
1
- export { default, GridProps } from '@material-ui/core/Grid';
@@ -1 +0,0 @@
1
- export { GridList as default, GridListProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Hidden as default, HiddenProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, InputAdornmentProps } from '@material-ui/core/InputAdornment';
@@ -1 +0,0 @@
1
- export { default, LinearProgressProps } from '@material-ui/core/LinearProgress';
@@ -1 +0,0 @@
1
- export { default, ListProps } from '@material-ui/core/List';
@@ -1 +0,0 @@
1
- export { default, ListItemProps } from '@material-ui/core/ListItem';
@@ -1 +0,0 @@
1
- export { default, ListItemAvatarProps } from '@material-ui/core/ListItemAvatar';
@@ -1 +0,0 @@
1
- export { default, ListItemIconProps } from '@material-ui/core/ListItemIcon';
@@ -1 +0,0 @@
1
- export { default, ListItemSecondaryActionProps } from '@material-ui/core/ListItemSecondaryAction';
@@ -1 +0,0 @@
1
- export { default, ListItemTextProps } from '@material-ui/core/ListItemText';
@@ -1 +0,0 @@
1
- export { default, MenuProps } from '@material-ui/core/Menu';
@@ -1 +0,0 @@
1
- export { default, MenuItemProps } from '@material-ui/core/MenuItem';
@@ -1 +0,0 @@
1
- export { default, MenuListProps } from '@material-ui/core/MenuList';
@@ -1 +0,0 @@
1
- export { Modal as default, ModalProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Popover as default, PopoverProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Popper as default, PopperProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Step as default, StepProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { StepButton as default, StepButtonProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { StepConnector as default, StepConnectorProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { StepContent as default, StepContentProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { StepIcon as default, StepIconProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { StepLabel as default, StepLabelProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Stepper as default, StepperProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { default, TabProps } from '@material-ui/core/Tab';
@@ -1 +0,0 @@
1
- export { default, TabsProps } from '@material-ui/core/Tabs';
@@ -1 +0,0 @@
1
- export { default, TextFieldProps } from '@material-ui/core/TextField';
@@ -1 +0,0 @@
1
- export { ThemeProvider as default, ThemeProviderProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { Toolbar as default, ToolbarProps } from '@material-ui/core';
@@ -1 +0,0 @@
1
- export { ServerStyleSheets } from '@material-ui/core/styles';