@popmenu/common-ui 0.126.0 → 0.126.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/build/{components → esm/components}/Accordion/index.d.ts +1 -1
  2. package/build/{components → esm/components}/AccordionActions/index.d.ts +1 -1
  3. package/build/{components → esm/components}/AccordionDetails/index.d.ts +1 -1
  4. package/build/{components → esm/components}/AccordionSummary/index.d.ts +1 -1
  5. package/build/{components → esm/components}/Alert/index.d.ts +1 -1
  6. package/build/{components → esm/components}/AppBar/index.d.ts +1 -1
  7. package/build/esm/components/Avatar/Avatar.d.ts +3 -0
  8. package/build/esm/components/Avatar/Avatar.js +39 -0
  9. package/build/esm/components/Avatar/Avatar.js.map +1 -0
  10. package/build/{components → esm/components}/Avatar/AvatarProps.d.ts +22 -22
  11. package/build/{components → esm/components}/Avatar/avatar.styles.d.ts +2 -2
  12. package/build/esm/components/Avatar/avatar.styles.js +41 -0
  13. package/build/esm/components/Avatar/avatar.styles.js.map +1 -0
  14. package/build/{components → esm/components}/Avatar/index.d.ts +2 -2
  15. package/build/{components → esm/components}/Avatar/util/useImageProps.d.ts +10 -10
  16. package/build/esm/components/Avatar/util/useImageProps.js +21 -0
  17. package/build/esm/components/Avatar/util/useImageProps.js.map +1 -0
  18. package/build/{components → esm/components}/Badge/index.d.ts +1 -1
  19. package/build/{components → esm/components}/Box/Box.d.ts +3 -3
  20. package/build/{components → esm/components}/Box/BoxProps.d.ts +5 -5
  21. package/build/{components → esm/components}/Box/BoxStyles.d.ts +1 -1
  22. package/build/{components → esm/components}/Box/index.d.ts +7 -7
  23. package/build/{components → esm/components}/Breadcrumbs/index.d.ts +1 -1
  24. package/build/{components → esm/components}/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
  25. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js +18 -0
  26. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -0
  27. package/build/{components → esm/components}/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -1
  28. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +25 -0
  29. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -0
  30. package/build/{components → esm/components}/BrowserSilhouette/index.d.ts +1 -1
  31. package/build/{components → esm/components}/Button/Button.d.ts +6 -6
  32. package/build/esm/components/Button/Button.js +23 -0
  33. package/build/esm/components/Button/Button.js.map +1 -0
  34. package/build/{components → esm/components}/Button/ButtonProps.d.ts +11 -11
  35. package/build/esm/components/Button/ButtonStyles.d.ts +2 -0
  36. package/build/esm/components/Button/ButtonStyles.js +16 -0
  37. package/build/esm/components/Button/ButtonStyles.js.map +1 -0
  38. package/build/{components → esm/components}/Button/index.d.ts +2 -2
  39. package/build/{components → esm/components}/ButtonBase/index.d.ts +1 -1
  40. package/build/{components → esm/components}/ButtonGroup/index.d.ts +1 -1
  41. package/build/{components → esm/components}/Card/index.d.ts +1 -1
  42. package/build/{components → esm/components}/CardActionArea/index.d.ts +1 -1
  43. package/build/{components → esm/components}/CardActions/index.d.ts +1 -1
  44. package/build/{components → esm/components}/CardContent/index.d.ts +1 -1
  45. package/build/{components → esm/components}/CardHeader/index.d.ts +1 -1
  46. package/build/{components → esm/components}/CardMedia/index.d.ts +1 -1
  47. package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
  48. package/build/esm/components/Checkbox/Checkbox.js +14 -0
  49. package/build/esm/components/Checkbox/Checkbox.js.map +1 -0
  50. package/build/{components → esm/components}/Checkbox/CheckboxProps.d.ts +8 -8
  51. package/build/{components → esm/components}/Checkbox/index.d.ts +2 -2
  52. package/build/{components → esm/components}/Chip/Chip.d.ts +6 -6
  53. package/build/esm/components/Chip/Chip.js +23 -0
  54. package/build/esm/components/Chip/Chip.js.map +1 -0
  55. package/build/{components → esm/components}/Chip/ChipProps.d.ts +8 -8
  56. package/build/{components → esm/components}/Chip/ChipStyles.d.ts +2 -2
  57. package/build/esm/components/Chip/ChipStyles.js +83 -0
  58. package/build/esm/components/Chip/ChipStyles.js.map +1 -0
  59. package/build/{components → esm/components}/Chip/index.d.ts +2 -2
  60. package/build/{components → esm/components}/CircularProgress/index.d.ts +1 -1
  61. package/build/{components → esm/components}/ClickAwayListener/index.d.ts +1 -1
  62. package/build/{components → esm/components}/CollapsibleText/CollapsibleText.d.ts +3 -3
  63. package/build/esm/components/CollapsibleText/CollapsibleText.js +41 -0
  64. package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -0
  65. package/build/{components → esm/components}/CollapsibleText/CollapsibleTextProps.d.ts +13 -13
  66. package/build/{components → esm/components}/CollapsibleText/CollapsibleTextStyles.d.ts +5 -5
  67. package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js +24 -0
  68. package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js.map +1 -0
  69. package/build/{components → esm/components}/CollapsibleText/index.d.ts +2 -2
  70. package/build/{components → esm/components}/Dialog/index.d.ts +1 -1
  71. package/build/{components → esm/components}/DialogActions/index.d.ts +1 -1
  72. package/build/{components → esm/components}/DialogContent/index.d.ts +1 -1
  73. package/build/{components → esm/components}/DialogContentText/index.d.ts +1 -1
  74. package/build/{components → esm/components}/DialogTitle/index.d.ts +1 -1
  75. package/build/{components → esm/components}/Divider/Divider.d.ts +3 -3
  76. package/build/esm/components/Divider/Divider.js +70 -0
  77. package/build/esm/components/Divider/Divider.js.map +1 -0
  78. package/build/{components → esm/components}/Divider/DividerProps.d.ts +17 -17
  79. package/build/{components → esm/components}/Divider/index.d.ts +2 -2
  80. package/build/{components → esm/components}/Drawer/index.d.ts +1 -1
  81. package/build/{components → esm/components}/Fab/index.d.ts +1 -1
  82. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -2
  83. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js +86 -0
  84. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js.map +1 -0
  85. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -2
  86. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js +12 -0
  87. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js.map +1 -0
  88. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -2
  89. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js +24 -0
  90. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map +1 -0
  91. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -4
  92. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js +18 -0
  93. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map +1 -0
  94. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -3
  95. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js +37 -0
  96. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js.map +1 -0
  97. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -29
  98. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -2
  99. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js +13 -0
  100. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js.map +1 -0
  101. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -2
  102. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +149 -0
  103. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -0
  104. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -2
  105. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +15 -0
  106. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -0
  107. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -2
  108. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +15 -0
  109. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -0
  110. package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -2
  111. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js +13 -0
  112. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js.map +1 -0
  113. package/build/{components → esm/components}/FollowerAuthenticationDialog/context.d.ts +4 -4
  114. package/build/esm/components/FollowerAuthenticationDialog/context.js +14 -0
  115. package/build/esm/components/FollowerAuthenticationDialog/context.js.map +1 -0
  116. package/build/{components → esm/components}/FollowerAuthenticationDialog/index.d.ts +2 -2
  117. package/build/{components → esm/components}/FollowerAuthenticationDialog/theme.d.ts +35 -35
  118. package/build/esm/components/FollowerAuthenticationDialog/theme.js +36 -0
  119. package/build/esm/components/FollowerAuthenticationDialog/theme.js.map +1 -0
  120. package/build/{components → esm/components}/FormControl/index.d.ts +1 -1
  121. package/build/{components → esm/components}/FormControlLabel/index.d.ts +1 -1
  122. package/build/{components → esm/components}/FormLabel/index.d.ts +1 -1
  123. package/build/{components → esm/components}/Grid/index.d.ts +1 -1
  124. package/build/{components → esm/components}/GridList/index.d.ts +1 -1
  125. package/build/{components → esm/components}/Hidden/index.d.ts +1 -1
  126. package/build/{components → esm/components}/Icon/Icon.d.ts +4 -4
  127. package/build/esm/components/Icon/Icon.js +29 -0
  128. package/build/esm/components/Icon/Icon.js.map +1 -0
  129. package/build/{components → esm/components}/Icon/IconProps.d.ts +17 -17
  130. package/build/{components → esm/components}/Icon/IconStyles.d.ts +2 -2
  131. package/build/esm/components/Icon/IconStyles.js +41 -0
  132. package/build/esm/components/Icon/IconStyles.js.map +1 -0
  133. package/build/{components → esm/components}/Icon/index.d.ts +2 -2
  134. package/build/esm/components/IconButton/IconButton.d.ts +3 -0
  135. package/build/esm/components/IconButton/IconButton.js +14 -0
  136. package/build/esm/components/IconButton/IconButton.js.map +1 -0
  137. package/build/{components → esm/components}/IconButton/IconButtonProps.d.ts +2 -2
  138. package/build/{components → esm/components}/IconButton/index.d.ts +2 -2
  139. package/build/{components → esm/components}/InputAdornment/index.d.ts +1 -1
  140. package/build/{components → esm/components}/LinearProgress/index.d.ts +1 -1
  141. package/build/{components → esm/components}/Link/Link.d.ts +11 -11
  142. package/build/esm/components/Link/Link.js +18 -0
  143. package/build/esm/components/Link/Link.js.map +1 -0
  144. package/build/{components → esm/components}/Link/LinkStyles.d.ts +2 -2
  145. package/build/esm/components/Link/LinkStyles.js +15 -0
  146. package/build/esm/components/Link/LinkStyles.js.map +1 -0
  147. package/build/{components → esm/components}/Link/index.d.ts +2 -2
  148. package/build/{components → esm/components}/List/index.d.ts +1 -1
  149. package/build/{components → esm/components}/ListItem/index.d.ts +1 -1
  150. package/build/{components → esm/components}/ListItemAvatar/index.d.ts +1 -1
  151. package/build/{components → esm/components}/ListItemIcon/index.d.ts +1 -1
  152. package/build/{components → esm/components}/ListItemSecondaryAction/index.d.ts +1 -1
  153. package/build/{components → esm/components}/ListItemText/index.d.ts +1 -1
  154. package/build/{components → esm/components}/Menu/index.d.ts +1 -1
  155. package/build/{components → esm/components}/MenuItem/index.d.ts +1 -1
  156. package/build/{components → esm/components}/MenuList/index.d.ts +1 -1
  157. package/build/{components → esm/components}/Modal/index.d.ts +1 -1
  158. package/build/{components → esm/components}/NumberField/NumberField.d.ts +3 -3
  159. package/build/esm/components/NumberField/NumberField.js +20 -0
  160. package/build/esm/components/NumberField/NumberField.js.map +1 -0
  161. package/build/{components → esm/components}/NumberField/NumberFieldProps.d.ts +12 -12
  162. package/build/{components → esm/components}/NumberField/NumberFieldStyles.d.ts +2 -2
  163. package/build/esm/components/NumberField/NumberFieldStyles.js +32 -0
  164. package/build/esm/components/NumberField/NumberFieldStyles.js.map +1 -0
  165. package/build/{components → esm/components}/NumberField/index.d.ts +2 -2
  166. package/build/esm/components/Paper/Paper.d.ts +6 -0
  167. package/build/esm/components/Paper/Paper.js +28 -0
  168. package/build/esm/components/Paper/Paper.js.map +1 -0
  169. package/build/{components → esm/components}/Paper/index.d.ts +1 -1
  170. package/build/{components → esm/components}/PaperContent/PaperContent.d.ts +2 -2
  171. package/build/esm/components/PaperContent/PaperContent.js +10 -0
  172. package/build/esm/components/PaperContent/PaperContent.js.map +1 -0
  173. package/build/{components → esm/components}/PaperContent/index.d.ts +1 -1
  174. package/build/{components → esm/components}/Popover/index.d.ts +1 -1
  175. package/build/{components → esm/components}/Popper/index.d.ts +1 -1
  176. package/build/esm/components/Radio/Radio.d.ts +3 -0
  177. package/build/esm/components/Radio/Radio.js +14 -0
  178. package/build/esm/components/Radio/Radio.js.map +1 -0
  179. package/build/{components → esm/components}/Radio/RadioProps.d.ts +8 -8
  180. package/build/{components → esm/components}/Radio/index.d.ts +2 -2
  181. package/build/{components → esm/components}/SplitInput/SplitInput.d.ts +3 -3
  182. package/build/esm/components/SplitInput/SplitInput.js +22 -0
  183. package/build/esm/components/SplitInput/SplitInput.js.map +1 -0
  184. package/build/{components → esm/components}/SplitInput/SplitInputProps.d.ts +20 -20
  185. package/build/{components → esm/components}/SplitInput/SplitInputStyles.d.ts +2 -2
  186. package/build/esm/components/SplitInput/SplitInputStyles.js +29 -0
  187. package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -0
  188. package/build/{components → esm/components}/SplitInput/index.d.ts +2 -2
  189. package/build/{components → esm/components}/Step/index.d.ts +1 -1
  190. package/build/{components → esm/components}/StepButton/index.d.ts +1 -1
  191. package/build/{components → esm/components}/StepConnector/index.d.ts +1 -1
  192. package/build/{components → esm/components}/StepContent/index.d.ts +1 -1
  193. package/build/{components → esm/components}/StepIcon/index.d.ts +1 -1
  194. package/build/{components → esm/components}/StepLabel/index.d.ts +1 -1
  195. package/build/{components → esm/components}/Stepper/index.d.ts +1 -1
  196. package/build/esm/components/Switch/Switch.d.ts +3 -0
  197. package/build/esm/components/Switch/Switch.js +16 -0
  198. package/build/esm/components/Switch/Switch.js.map +1 -0
  199. package/build/{components → esm/components}/Switch/SwitchProps.d.ts +8 -8
  200. package/build/{components → esm/components}/Switch/index.d.ts +2 -2
  201. package/build/{components → esm/components}/Switch/switch.styles.d.ts +2 -2
  202. package/build/esm/components/Switch/switch.styles.js +17 -0
  203. package/build/esm/components/Switch/switch.styles.js.map +1 -0
  204. package/build/{components → esm/components}/Tab/index.d.ts +1 -1
  205. package/build/{components → esm/components}/TabPanel/TabPanel.d.ts +3 -3
  206. package/build/esm/components/TabPanel/TabPanel.js +10 -0
  207. package/build/esm/components/TabPanel/TabPanel.js.map +1 -0
  208. package/build/{components → esm/components}/TabPanel/TabPanelProps.d.ts +3 -3
  209. package/build/{components → esm/components}/TabPanel/index.d.ts +2 -2
  210. package/build/{components → esm/components}/Tabs/index.d.ts +1 -1
  211. package/build/{components → esm/components}/TextField/index.d.ts +1 -1
  212. package/build/{components → esm/components}/ThemeProvider/index.d.ts +1 -1
  213. package/build/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
  214. package/build/esm/components/ToggleButton/ToggleButton.js +20 -0
  215. package/build/esm/components/ToggleButton/ToggleButton.js.map +1 -0
  216. package/build/{components → esm/components}/ToggleButton/ToggleButtonProps.d.ts +4 -4
  217. package/build/{components → esm/components}/ToggleButton/ToggleButtonStyles.d.ts +2 -2
  218. package/build/esm/components/ToggleButton/ToggleButtonStyles.js +19 -0
  219. package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -0
  220. package/build/{components → esm/components}/ToggleButton/index.d.ts +2 -2
  221. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
  222. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js +20 -0
  223. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -0
  224. package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -6
  225. package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -1
  226. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +12 -0
  227. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -0
  228. package/build/{components → esm/components}/ToggleButtonGroup/index.d.ts +2 -2
  229. package/build/{components → esm/components}/Toolbar/index.d.ts +1 -1
  230. package/build/esm/components/Tooltip/Tooltip.d.ts +3 -0
  231. package/build/esm/components/Tooltip/Tooltip.js +13 -0
  232. package/build/esm/components/Tooltip/Tooltip.js.map +1 -0
  233. package/build/{components → esm/components}/Tooltip/TooltipProps.d.ts +1 -1
  234. package/build/{components → esm/components}/Tooltip/TooltipStyles.d.ts +2 -2
  235. package/build/esm/components/Tooltip/TooltipStyles.js +13 -0
  236. package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -0
  237. package/build/{components → esm/components}/Tooltip/index.d.ts +2 -2
  238. package/build/{components → esm/components}/Typography/Typography.d.ts +9 -9
  239. package/build/esm/components/Typography/Typography.js +17 -0
  240. package/build/esm/components/Typography/Typography.js.map +1 -0
  241. package/build/{components → esm/components}/Typography/TypographyProps.d.ts +15 -15
  242. package/build/esm/components/Typography/TypographyProps.js +6 -0
  243. package/build/esm/components/Typography/TypographyProps.js.map +1 -0
  244. package/build/esm/components/Typography/TypographyStyles.d.ts +10 -0
  245. package/build/esm/components/Typography/TypographyStyles.js +76 -0
  246. package/build/esm/components/Typography/TypographyStyles.js.map +1 -0
  247. package/build/{components → esm/components}/Typography/index.d.ts +2 -2
  248. package/build/{components → esm/components}/index.d.ts +78 -78
  249. package/build/{hooks → esm/hooks}/index.d.ts +2 -2
  250. package/build/{hooks → esm/hooks}/useCollapsibleText.d.ts +9 -9
  251. package/build/esm/hooks/useCollapsibleText.js +17 -0
  252. package/build/esm/hooks/useCollapsibleText.js.map +1 -0
  253. package/build/{hooks → esm/hooks}/useTabs/index.d.ts +1 -1
  254. package/build/{hooks → esm/hooks}/useTabs/useTabs.d.ts +3 -3
  255. package/build/esm/hooks/useTabs/useTabs.js +35 -0
  256. package/build/esm/hooks/useTabs/useTabs.js.map +1 -0
  257. package/build/{hooks → esm/hooks}/useTabs/useTabsOptions.d.ts +3 -3
  258. package/build/{hooks → esm/hooks}/useTabs/useTabsResult.d.ts +22 -22
  259. package/build/{index.d.ts → esm/index.d.ts} +3 -3
  260. package/build/esm/index.js +60 -0
  261. package/build/esm/index.js.map +1 -0
  262. package/build/{types → esm/types}/index.d.ts +2 -2
  263. package/build/{util → esm/util}/ServerStyleSheets.d.ts +1 -1
  264. package/build/{util → esm/util}/colors/alpha.d.ts +1 -1
  265. package/build/{util → esm/util}/colors/darken.d.ts +1 -1
  266. package/build/{util → esm/util}/colors/decomposeColor.d.ts +1 -1
  267. package/build/{util → esm/util}/colors/getLuminance.d.ts +1 -1
  268. package/build/{util → esm/util}/colors/hexToRgb.d.ts +1 -1
  269. package/build/{util → esm/util}/colors/index.d.ts +8 -8
  270. package/build/{util → esm/util}/colors/lighten.d.ts +1 -1
  271. package/build/{util → esm/util}/colors/recomposeColor.d.ts +1 -1
  272. package/build/{util → esm/util}/colors/rgbToHex.d.ts +1 -1
  273. package/build/{util → esm/util}/createTheme.d.ts +1 -1
  274. package/build/{util → esm/util}/index.d.ts +4 -4
  275. package/build/{util → esm/util}/makeStyles.d.ts +1 -1
  276. package/build/index.js +1130 -1729
  277. package/build/index.js.map +1 -1
  278. package/package.json +7 -7
  279. package/build/components/Avatar/Avatar.d.ts +0 -3
  280. package/build/components/Button/ButtonStyles.d.ts +0 -2
  281. package/build/components/Checkbox/Checkbox.d.ts +0 -3
  282. package/build/components/IconButton/IconButton.d.ts +0 -3
  283. package/build/components/Paper/Paper.d.ts +0 -6
  284. package/build/components/Radio/Radio.d.ts +0 -3
  285. package/build/components/Switch/Switch.d.ts +0 -3
  286. package/build/components/ToggleButton/ToggleButton.d.ts +0 -3
  287. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -3
  288. package/build/components/Tooltip/Tooltip.d.ts +0 -3
  289. package/build/components/Typography/TypographyStyles.d.ts +0 -4
  290. package/build/index.es.js +0 -1479
  291. package/build/index.es.js.map +0 -1
@@ -1 +1 @@
1
- export { Accordion as default, AccordionProps } from '@material-ui/core';
1
+ export { Accordion as default, AccordionProps } from '@material-ui/core';
@@ -1 +1 @@
1
- export { AccordionActions as default, AccordionActionsProps } from '@material-ui/core';
1
+ export { AccordionActions as default, AccordionActionsProps } from '@material-ui/core';
@@ -1 +1 @@
1
- export { AccordionDetails as default, AccordionDetailsProps } from '@material-ui/core';
1
+ export { AccordionDetails as default, AccordionDetailsProps } from '@material-ui/core';
@@ -1 +1 @@
1
- export { AccordionSummary as default, AccordionSummaryProps } from '@material-ui/core';
1
+ export { AccordionSummary as default, AccordionSummaryProps } from '@material-ui/core';
@@ -1 +1 @@
1
- export { default, AlertProps } from '@material-ui/lab/Alert';
1
+ export { default, AlertProps } from '@material-ui/lab/Alert';
@@ -1 +1 @@
1
- export { default, AppBarProps } from '@material-ui/core/AppBar';
1
+ export { default, AppBarProps } from '@material-ui/core/AppBar';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from './AvatarProps';
3
+ export declare const Avatar: React.ForwardRefExoticComponent<Pick<AvatarProps, "color" | "translate" | "background" | "hidden" | "size" | "style" | "aria-describedby" | "aria-hidden" | "aria-label" | "className" | "variant" | "slot" | "title" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "imgProps" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "fallback" | "fit" | "alt" | "sizes" | "src" | "srcSet"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,39 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import MuiAvatar from '@material-ui/core/Avatar';
4
+ import { User } from '@popmenu/web-icons';
5
+ import { Icon } from '../Icon/Icon.js';
6
+ import { useAvatarStyles } from './avatar.styles.js';
7
+ import { useImgProps } from './util/useImageProps.js';
8
+
9
+ var Avatar = forwardRef(function (props, ref) {
10
+ var children = props.children, src = props.src, alt = props.alt, fallback = props.fallback, muiProps = __rest(props, ["children", "src", "alt", "fallback"]);
11
+ var _a = useImgProps(props), imgProps = _a.imgProps, loaded = _a.loaded;
12
+ var classes = useAvatarStyles(__assign(__assign({}, props), { loaded: loaded }));
13
+ var displayAltTextFallback = src && alt;
14
+ var displayNoFallback = fallback === 'none';
15
+ var displayCustomFallback = fallback !== 'none' && typeof fallback !== 'undefined';
16
+ var Fallback;
17
+ if (displayAltTextFallback) {
18
+ Fallback = null;
19
+ }
20
+ else if (displayNoFallback) {
21
+ Fallback = ' ';
22
+ }
23
+ else if (displayCustomFallback) {
24
+ Fallback = fallback;
25
+ }
26
+ else {
27
+ Fallback = React.createElement(Icon, { icon: User, className: classes.fallback });
28
+ }
29
+ return (React.createElement(MuiAvatar, __assign({ ref: ref, classes: { root: classes.root }, src: src, alt: alt }, muiProps, { imgProps: imgProps }), children || Fallback));
30
+ });
31
+ Avatar.defaultProps = {
32
+ size: 'medium',
33
+ fit: 'cover',
34
+ background: '#E0E0E0',
35
+ };
36
+ Avatar.displayName = 'Avatar';
37
+
38
+ export { Avatar };
39
+ //# sourceMappingURL=Avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.js","sources":["../../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport MuiAvatar from '@material-ui/core/Avatar'\nimport { User } from '@popmenu/web-icons'\nimport Icon from '../Icon'\n\nimport { AvatarProps, StyledAvatarProps } from './AvatarProps'\nimport { useAvatarStyles } from './avatar.styles'\nimport { useImgProps } from './util/useImageProps'\n\nexport const Avatar = forwardRef<HTMLDivElement, AvatarProps>((props, ref) => {\n const { children, src, alt, fallback, ...muiProps } = props\n const { imgProps, loaded } = useImgProps(props)\n const classes = useAvatarStyles({ ...props, loaded } as StyledAvatarProps)\n const displayAltTextFallback = src && alt\n const displayNoFallback = fallback === 'none'\n const displayCustomFallback = fallback !== 'none' && typeof fallback !== 'undefined'\n let Fallback\n if (displayAltTextFallback) {\n Fallback = null\n } else if (displayNoFallback) {\n Fallback = ' '\n } else if (displayCustomFallback) {\n Fallback = fallback\n } else {\n Fallback = <Icon icon={User} className={classes.fallback} />\n }\n return (\n <MuiAvatar ref={ref} classes={{ root: classes.root }} src={src} alt={alt} {...muiProps} imgProps={imgProps}>\n {children || Fallback}\n </MuiAvatar>\n )\n})\n\nAvatar.defaultProps = {\n size: 'medium',\n fit: 'cover',\n background: '#E0E0E0',\n}\n\nAvatar.displayName = 'Avatar'\n"],"names":[],"mappings":";;;;;;;;IASa,MAAM,GAAG,UAAU,CAA8B,UAAC,KAAK,EAAE,GAAG,EAAA;IAC/D,IAAA,QAAQ,GAAsC,KAAK,CAA3C,QAAA,EAAE,GAAG,GAAiC,KAAK,CAAA,GAAtC,EAAE,GAAG,GAA4B,KAAK,IAAjC,EAAE,QAAQ,GAAkB,KAAK,CAAvB,QAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAArD,CAA6C,UAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,CAAA,CAAF;IAC3C,IAAA,EAAA,GAAuB,WAAW,CAAC,KAAK,CAAC,EAAvC,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MAAuB;IAC/C,IAAM,OAAO,GAAG,eAAe,CAAC,QAAA,CAAA,QAAA,CAAA,EAAA,EAAK,KAAK,CAAA,EAAA,EAAE,MAAM,EAAA,MAAA,EAAuB,CAAA,CAAC;AAC1E,IAAA,IAAM,sBAAsB,GAAG,GAAG,IAAI,GAAG;AACzC,IAAA,IAAM,iBAAiB,GAAG,QAAQ,KAAK,MAAM;IAC7C,IAAM,qBAAqB,GAAG,QAAQ,KAAK,MAAM,IAAI,OAAO,QAAQ,KAAK,WAAW;AACpF,IAAA,IAAI,QAAQ;AACZ,IAAA,IAAI,sBAAsB,EAAE;QAC1B,QAAQ,GAAG,IAAI;AAChB;AAAM,SAAA,IAAI,iBAAiB,EAAE;QAC5B,QAAQ,GAAG,GAAG;AACf;AAAM,SAAA,IAAI,qBAAqB,EAAE;QAChC,QAAQ,GAAG,QAAQ;AACpB;AAAM,SAAA;AACL,QAAA,QAAQ,GAAG,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,GAAI;AAC7D;AACD,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,SAAS,EAAC,QAAA,CAAA,EAAA,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAM,QAAQ,EAAA,EAAE,QAAQ,EAAE,QAAQ,EACvG,CAAA,EAAA,QAAQ,IAAI,QAAQ,CACX;AAEhB,CAAC;AAED,MAAM,CAAC,YAAY,GAAG;AACpB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,GAAG,EAAE,OAAO;AACZ,IAAA,UAAU,EAAE,SAAS;CACtB;AAED,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -1,22 +1,22 @@
1
- import { AvatarProps as MuiAvatarProps } from '@material-ui/core/Avatar';
2
- import { ReactNode } from 'react';
3
- import { LoadingStatus } from './util/useImageProps';
4
- export declare const AvatarDefaultProps: {
5
- size: string;
6
- fit: string;
7
- background: string;
8
- };
9
- export interface AvatarProps extends MuiAvatarProps {
10
- /** Sets the background-color for an Avatar. Automatically adjusts text color for readable contrast. Accepts color codes only, no CSS colors. */
11
- background?: string;
12
- /** Sets the css object-fit property for the Avatar img. */
13
- fit?: 'cover' | 'contain';
14
- /** Sets the size for an Avatar. */
15
- size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
16
- /** Disables the default fallback when set to 'none'. A component can be given to set a new fallback. */
17
- fallback?: 'none' | ReactNode;
18
- }
19
- export declare type PracticalAvatarProps = AvatarProps & typeof AvatarDefaultProps;
20
- export declare type StyledAvatarProps = PracticalAvatarProps & {
21
- loaded: LoadingStatus;
22
- };
1
+ import { AvatarProps as MuiAvatarProps } from '@material-ui/core/Avatar';
2
+ import { ReactNode } from 'react';
3
+ import { LoadingStatus } from './util/useImageProps';
4
+ export declare const AvatarDefaultProps: {
5
+ size: string;
6
+ fit: string;
7
+ background: string;
8
+ };
9
+ export interface AvatarProps extends MuiAvatarProps {
10
+ /** Sets the background-color for an Avatar. Automatically adjusts text color for readable contrast. Accepts color codes only, no CSS colors. */
11
+ background?: string;
12
+ /** Sets the css object-fit property for the Avatar img. */
13
+ fit?: 'cover' | 'contain';
14
+ /** Sets the size for an Avatar. */
15
+ size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
16
+ /** Disables the default fallback when set to 'none'. A component can be given to set a new fallback. */
17
+ fallback?: 'none' | ReactNode;
18
+ }
19
+ export declare type PracticalAvatarProps = AvatarProps & typeof AvatarDefaultProps;
20
+ export declare type StyledAvatarProps = PracticalAvatarProps & {
21
+ loaded: LoadingStatus;
22
+ };
@@ -1,2 +1,2 @@
1
- import { StyledAvatarProps } from './AvatarProps';
2
- export declare const useAvatarStyles: (props: StyledAvatarProps) => import("@material-ui/styles").ClassNameMap<string>;
1
+ import { StyledAvatarProps } from './AvatarProps';
2
+ export declare const useAvatarStyles: (props: StyledAvatarProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,41 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+ import { LoadingStatus } from './util/useImageProps.js';
3
+
4
+ var getAvatarDimensions = function (theme, props) {
5
+ var factors = {
6
+ 'extra-small': 3,
7
+ small: 4,
8
+ medium: 5,
9
+ large: 6,
10
+ 'extra-large': 12.5,
11
+ };
12
+ var sizeFactor = factors[props.size || 'medium'];
13
+ return theme.spacing(sizeFactor);
14
+ };
15
+ var getAvatarFontSize = function (props) {
16
+ var fontSizes = {
17
+ 'extra-small': '0.75rem',
18
+ small: '1rem',
19
+ medium: '1rem',
20
+ large: '1.25rem',
21
+ 'extra-large': '3.5rem',
22
+ };
23
+ return fontSizes[props.size];
24
+ };
25
+ var useAvatarStyles = makeStyles(function (theme) { return ({
26
+ root: function (props) { return ({
27
+ width: getAvatarDimensions(theme, props),
28
+ height: getAvatarDimensions(theme, props),
29
+ fontSize: getAvatarFontSize(props),
30
+ backgroundColor: props.loaded === LoadingStatus.LOADED ? 'transparent' : props.background,
31
+ color: theme.palette.getContrastText(props.background),
32
+ objectFit: props.fit,
33
+ }); },
34
+ fallback: function (props) { return ({
35
+ fontSize: getAvatarDimensions(theme, props),
36
+ strokeWidth: 1,
37
+ }); },
38
+ }); });
39
+
40
+ export { useAvatarStyles };
41
+ //# sourceMappingURL=avatar.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.styles.js","sources":["../../../../src/components/Avatar/avatar.styles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\nimport { StyledAvatarProps } from './AvatarProps'\nimport { LoadingStatus } from './util/useImageProps'\n\nconst getAvatarDimensions = (theme: Theme, props: StyledAvatarProps) => {\n const factors = {\n 'extra-small': 3,\n small: 4,\n medium: 5,\n large: 6,\n 'extra-large': 12.5,\n }\n const sizeFactor = factors[props.size || 'medium']\n return theme.spacing(sizeFactor)\n}\n\nconst getAvatarFontSize = (props: StyledAvatarProps) => {\n const fontSizes = {\n 'extra-small': '0.75rem',\n small: '1rem',\n medium: '1rem',\n large: '1.25rem',\n 'extra-large': '3.5rem',\n }\n return fontSizes[props.size]\n}\n\nexport const useAvatarStyles = makeStyles<Theme, StyledAvatarProps>((theme) => ({\n root: (props) => ({\n width: getAvatarDimensions(theme, props),\n height: getAvatarDimensions(theme, props),\n fontSize: getAvatarFontSize(props),\n backgroundColor: props.loaded === LoadingStatus.LOADED ? 'transparent' : props.background,\n color: theme.palette.getContrastText(props.background),\n objectFit: props.fit,\n }),\n fallback: (props) => ({\n fontSize: getAvatarDimensions(theme, props),\n strokeWidth: 1,\n }),\n}))\n"],"names":[],"mappings":";;;AAIA,IAAM,mBAAmB,GAAG,UAAC,KAAY,EAAE,KAAwB,EAAA;AACjE,IAAA,IAAM,OAAO,GAAG;AACd,QAAA,aAAa,EAAE,CAAC;AAChB,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,KAAK,EAAE,CAAC;AACR,QAAA,aAAa,EAAE,IAAI;KACpB;IACD,IAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC;AAClD,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;AAClC,CAAC;AAED,IAAM,iBAAiB,GAAG,UAAC,KAAwB,EAAA;AACjD,IAAA,IAAM,SAAS,GAAG;AAChB,QAAA,aAAa,EAAE,SAAS;AACxB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,aAAa,EAAE,QAAQ;KACxB;AACD,IAAA,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;AAC9B,CAAC;AAEY,IAAA,eAAe,GAAG,UAAU,CAA2B,UAAC,KAAK,EAAK,EAAA,QAAC;AAC9E,IAAA,IAAI,EAAE,UAAC,KAAK,EAAA,EAAK,QAAC;AAChB,QAAA,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC;AACxC,QAAA,MAAM,EAAE,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC;AACzC,QAAA,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC;AAClC,QAAA,eAAe,EAAE,KAAK,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC,UAAU;QACzF,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC;QACtD,SAAS,EAAE,KAAK,CAAC,GAAG;AACrB,KAAA,IAAC;AACF,IAAA,QAAQ,EAAE,UAAC,KAAK,EAAA,EAAK,QAAC;AACpB,QAAA,QAAQ,EAAE,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC;AAC3C,QAAA,WAAW,EAAE,CAAC;AACf,KAAA,IAAC;CACH,EAAC,EAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { Avatar as default } from './Avatar';
2
- export { AvatarProps } from './AvatarProps';
1
+ export { Avatar as default } from './Avatar';
2
+ export { AvatarProps } from './AvatarProps';
@@ -1,10 +1,10 @@
1
- import { AvatarProps } from '../AvatarProps';
2
- export declare enum LoadingStatus {
3
- ERROR = "ERROR",
4
- LOADED = "LOADED",
5
- PENDING = "PENDING"
6
- }
7
- export declare const useImgProps: (avatarProps: AvatarProps) => {
8
- imgProps: AvatarProps['imgProps'];
9
- loaded: LoadingStatus;
10
- };
1
+ import { AvatarProps } from '../AvatarProps';
2
+ export declare enum LoadingStatus {
3
+ ERROR = "ERROR",
4
+ LOADED = "LOADED",
5
+ PENDING = "PENDING"
6
+ }
7
+ export declare const useImgProps: (avatarProps: AvatarProps) => {
8
+ imgProps: AvatarProps['imgProps'];
9
+ loaded: LoadingStatus;
10
+ };
@@ -0,0 +1,21 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+
4
+ var LoadingStatus;
5
+ (function (LoadingStatus) {
6
+ LoadingStatus["ERROR"] = "ERROR";
7
+ LoadingStatus["LOADED"] = "LOADED";
8
+ LoadingStatus["PENDING"] = "PENDING";
9
+ })(LoadingStatus || (LoadingStatus = {}));
10
+ var useImgProps = function (avatarProps) {
11
+ var _a = React.useState(LoadingStatus.PENDING), loaded = _a[0], setLoaded = _a[1];
12
+ var imgProps = __assign(__assign({}, avatarProps.imgProps), { onLoad: function (event) {
13
+ var _a, _b;
14
+ setLoaded(LoadingStatus.LOADED);
15
+ (_b = (_a = avatarProps.imgProps) === null || _a === void 0 ? void 0 : _a.onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, event);
16
+ } });
17
+ return { imgProps: imgProps, loaded: loaded };
18
+ };
19
+
20
+ export { LoadingStatus, useImgProps };
21
+ //# sourceMappingURL=useImageProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImageProps.js","sources":["../../../../../src/components/Avatar/util/useImageProps.ts"],"sourcesContent":["import React, { SyntheticEvent } from 'react'\nimport { AvatarProps } from '../AvatarProps'\n\nexport enum LoadingStatus {\n ERROR = 'ERROR',\n LOADED = 'LOADED',\n PENDING = 'PENDING',\n}\n\nexport const useImgProps: (avatarProps: AvatarProps) => { imgProps: AvatarProps['imgProps']; loaded: LoadingStatus } = (\n avatarProps,\n) => {\n const [loaded, setLoaded] = React.useState<LoadingStatus>(LoadingStatus.PENDING)\n const imgProps = {\n ...avatarProps.imgProps,\n onLoad: (event: SyntheticEvent<HTMLImageElement, Event>) => {\n setLoaded(LoadingStatus.LOADED)\n avatarProps.imgProps?.onLoad?.(event)\n },\n }\n\n return { imgProps, loaded }\n}\n"],"names":[],"mappings":";;;IAGY;AAAZ,CAAA,UAAY,aAAa,EAAA;AACvB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAJW,aAAa,KAAb,aAAa,GAIxB,EAAA,CAAA,CAAA;AAEM,IAAM,WAAW,GAA+F,UACrH,WAAW,EAAA;AAEL,IAAA,IAAA,EAAsB,GAAA,KAAK,CAAC,QAAQ,CAAgB,aAAa,CAAC,OAAO,CAAC,EAAzE,MAAM,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,SAAS,QAAwD;IAChF,IAAM,QAAQ,yBACT,WAAW,CAAC,QAAQ,CACvB,EAAA,EAAA,MAAM,EAAE,UAAC,KAA8C,EAAA;;AACrD,YAAA,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC;YAC/B,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,WAAW,CAAC,QAAQ,0CAAE,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,EAAG,KAAK,CAAC;AACvC,SAAC,GACF;AAED,IAAA,OAAO,EAAE,QAAQ,EAAA,QAAA,EAAE,MAAM,EAAA,MAAA,EAAE;AAC7B;;;;"}
@@ -1 +1 @@
1
- export { default, BadgeProps } from '@material-ui/core/Badge';
1
+ export { default, BadgeProps } from '@material-ui/core/Badge';
@@ -1,3 +1,3 @@
1
- import { FC } from 'react';
2
- import { BoxProps } from './BoxProps';
3
- export declare const Box: FC<BoxProps>;
1
+ import { FC } from 'react';
2
+ import { BoxProps } from './BoxProps';
3
+ export declare const Box: FC<BoxProps>;
@@ -1,5 +1,5 @@
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
+ 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 +1 @@
1
- export declare const useBoxStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
1
+ export declare const useBoxStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
@@ -1,7 +1,7 @@
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
+ /**
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 +1 @@
1
- export { Breadcrumbs as default, BreadcrumbsProps } from '@material-ui/core';
1
+ export { Breadcrumbs as default, BreadcrumbsProps } from '@material-ui/core';
@@ -1,2 +1,2 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const BrowserSilhouette: ({ children }: PropsWithChildren<Record<string, unknown>>) => JSX.Element;
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const BrowserSilhouette: ({ children }: PropsWithChildren<Record<string, unknown>>) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Box } from '@material-ui/core';
3
+ import { useBrowserSilhouetteStyles } from './browserSilhouette.styles.js';
4
+
5
+ var BrowserSilhouette = function (_a) {
6
+ var children = _a.children;
7
+ var classes = useBrowserSilhouetteStyles();
8
+ return (React.createElement(Box, { display: "flex" },
9
+ React.createElement("div", { className: classes.container },
10
+ React.createElement("div", { className: classes.titleBar },
11
+ React.createElement("div", { className: classes.circle }),
12
+ React.createElement("div", { className: classes.circle }),
13
+ React.createElement("div", { className: classes.circle })),
14
+ children)));
15
+ };
16
+
17
+ export { BrowserSilhouette };
18
+ //# sourceMappingURL=BrowserSilhouette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserSilhouette.js","sources":["../../../../src/components/BrowserSilhouette/BrowserSilhouette.tsx"],"sourcesContent":["import React, { PropsWithChildren } from 'react'\n\nimport Box from '../Box'\nimport { useBrowserSilhouetteStyles } from './browserSilhouette.styles'\n\nexport const BrowserSilhouette = ({ children }: PropsWithChildren<Record<string, unknown>>) => {\n const classes = useBrowserSilhouetteStyles()\n\n return (\n <Box display=\"flex\">\n <div className={classes.container}>\n <div className={classes.titleBar}>\n <div className={classes.circle} />\n <div className={classes.circle} />\n <div className={classes.circle} />\n </div>\n {children}\n </div>\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAKO,IAAM,iBAAiB,GAAG,UAAC,EAAwD,EAAA;AAAtD,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;AAC1C,IAAA,IAAM,OAAO,GAAG,0BAA0B,EAAE;AAE5C,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,OAAO,EAAC,MAAM,EAAA;AACjB,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,OAAO,CAAC,SAAS,EAAA;AAC/B,YAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAA;AAC9B,gBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,OAAO,CAAC,MAAM,EAAI,CAAA;AAClC,gBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,OAAO,CAAC,MAAM,EAAI,CAAA;AAClC,gBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,OAAO,CAAC,MAAM,GAAI,CAC9B;YACL,QAAQ,CACL,CACF;AAEV;;;;"}
@@ -1 +1 @@
1
- export declare const useBrowserSilhouetteStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
1
+ export declare const useBrowserSilhouetteStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,25 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+
3
+ var useBrowserSilhouetteStyles = makeStyles(function (theme) { return ({
4
+ circle: {
5
+ backgroundColor: theme.palette.grey[300],
6
+ borderRadius: '50%',
7
+ height: theme.spacing(0.65),
8
+ width: theme.spacing(0.65),
9
+ margin: theme.spacing(1) + "px 0 " + theme.spacing(1) + "px " + theme.spacing(1) + "px",
10
+ },
11
+ container: {
12
+ border: "1px solid " + theme.palette.secondary.light,
13
+ borderRadius: theme.spacing(0.5),
14
+ flexGrow: 1,
15
+ },
16
+ titleBar: {
17
+ display: 'flex',
18
+ flexDirection: 'row',
19
+ borderBottom: "1px solid " + theme.palette.secondary.light,
20
+ width: '100%',
21
+ },
22
+ }); });
23
+
24
+ export { useBrowserSilhouetteStyles };
25
+ //# sourceMappingURL=browserSilhouette.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserSilhouette.styles.js","sources":["../../../../src/components/BrowserSilhouette/browserSilhouette.styles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\n\nexport const useBrowserSilhouetteStyles = makeStyles<Theme>((theme) => ({\n circle: {\n backgroundColor: theme.palette.grey[300],\n borderRadius: '50%',\n height: theme.spacing(0.65),\n width: theme.spacing(0.65),\n margin: `${theme.spacing(1)}px 0 ${theme.spacing(1)}px ${theme.spacing(1)}px`,\n },\n container: {\n border: `1px solid ${theme.palette.secondary.light}`,\n borderRadius: theme.spacing(0.5),\n flexGrow: 1,\n },\n titleBar: {\n display: 'flex',\n flexDirection: 'row',\n borderBottom: `1px solid ${theme.palette.secondary.light}`,\n width: '100%',\n },\n}))\n"],"names":[],"mappings":";;AAEa,IAAA,0BAA0B,GAAG,UAAU,CAAQ,UAAC,KAAK,EAAK,EAAA,QAAC;AACtE,IAAA,MAAM,EAAE;QACN,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACxC,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;AAC3B,QAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAC1B,MAAM,EAAK,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,aAAQ,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAM,KAAA,GAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAI,IAAA;AAC9E,KAAA;AACD,IAAA,SAAS,EAAE;QACT,MAAM,EAAE,eAAa,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAO;AACpD,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAChC,QAAA,QAAQ,EAAE,CAAC;AACZ,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,eAAa,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAO;AAC1D,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -1 +1 @@
1
- export { BrowserSilhouette as default } from './BrowserSilhouette';
1
+ export { BrowserSilhouette as default } from './BrowserSilhouette';
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ButtonProps } from './ButtonProps';
3
- export declare const Button: {
4
- <C extends React.ElementType<any> = "button">(props: ButtonProps<C>): JSX.Element;
5
- displayName: string;
6
- };
1
+ import React from 'react';
2
+ import { ButtonProps } from './ButtonProps';
3
+ export declare const Button: {
4
+ <C extends React.ElementType<any> = "button">(props: ButtonProps<C>): JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,23 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React from 'react';
3
+ import MuiButton from '@material-ui/core/Button';
4
+ import classNames from 'classnames';
5
+ import { useTheme } from '@material-ui/core/styles';
6
+ import { useButtonStyles } from './ButtonStyles.js';
7
+ import CircularProgress from '@material-ui/core/CircularProgress';
8
+
9
+ var Button = function (props) {
10
+ props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, ButtonRef = props.ButtonRef, muiProps = __rest(props, ["textTransform", "loading", "classes", "className", "ButtonRef"]);
11
+ props.classes; var styleProps = __rest(props, ["classes"]);
12
+ var classes = useButtonStyles(styleProps);
13
+ var typography = useTheme().typography;
14
+ var loadingIndicator = {
15
+ startIcon: React.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
16
+ disabled: true,
17
+ };
18
+ return (React.createElement(MuiButton, __assign({ ref: ButtonRef, classes: __assign(__assign({}, classes), classesOverride), className: classNames([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
19
+ };
20
+ Button.displayName = 'Button';
21
+
22
+ export { Button };
23
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import React from 'react'\nimport MuiButton from '@material-ui/core/Button'\nimport classNames from 'classnames'\n\nimport { useTheme } from '@material-ui/core/styles'\nimport { ButtonProps } from './ButtonProps'\nimport { useButtonStyles } from './ButtonStyles'\nimport CircularProgress from '@material-ui/core/CircularProgress'\n\nexport const Button = <C extends React.ElementType = 'button'>(props: ButtonProps<C>) => {\n const { textTransform, loading, classes: classesOverride, className, ButtonRef, ...muiProps } = props\n const { classes: remove, ...styleProps } = props\n const classes = useButtonStyles(styleProps)\n const { typography } = useTheme()\n const loadingIndicator = {\n startIcon: <CircularProgress color=\"inherit\" size={typography.button.fontSize} />,\n disabled: true,\n }\n return (\n <MuiButton\n ref={ButtonRef}\n classes={{ ...classes, ...classesOverride }}\n className={classNames([className, 'pm-button'])}\n {...muiProps}\n {...(loading && loadingIndicator)}\n />\n )\n}\n\nButton.displayName = 'Button'\n"],"names":[],"mappings":";;;;;;;;AASO,IAAM,MAAM,GAAG,UAAyC,KAAqB,EAAA;AAC1E,IAAwF,KAAK,CAAA,aAAhF,CAAE,KAAA,OAAO,GAAkE,KAAK,CAAvE,OAAA,CAAA,CAAW,eAAe,GAAwC,KAAK,CAA7C,OAAA,CAAA,CAAE,SAAS,GAA6B,KAAK,CAAA,SAAlC,CAAE,CAAA,SAAS,GAAkB,KAAK,CAAA,SAAvB,CAAK,CAAA,QAAQ,GAAK,MAAA,CAAA,KAAK,EAA/F,CAAA,eAAA,EAAA,SAAA,EAAA,SAAA,EAAA,WAAA,EAAA,WAAA,CAAuF;IAClD,KAAK,CAAzB,OAAA,CAAA,KAAK,UAAU,GAAA,MAAA,CAAK,KAAK,EAA1C,CAAkC,SAAA,CAAA;AACxC,IAAA,IAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC;AACnC,IAAA,IAAA,UAAU,GAAK,QAAQ,EAAE,WAAf;AAClB,IAAA,IAAM,gBAAgB,GAAG;AACvB,QAAA,SAAS,EAAE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAI,CAAA;AACjF,QAAA,QAAQ,EAAE,IAAI;KACf;AACD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,QAAA,CAAA,EACR,GAAG,EAAE,SAAS,EACd,OAAO,wBAAO,OAAO,CAAA,EAAK,eAAe,CAAA,EACzC,SAAS,EAAE,UAAU,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,EAC3C,EAAA,QAAQ,GACP,OAAO,IAAI,gBAAgB,EAAC,CACjC;AAEN;AAEA,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -1,11 +1,11 @@
1
- import { ButtonProps as MuiButtonProps } from '@material-ui/core/Button';
2
- import React, { RefObject } from 'react';
3
- export declare type ButtonProps<C extends React.ElementType = 'button'> = MuiButtonProps<C, {
4
- component?: C;
5
- }> & {
6
- ButtonRef?: RefObject<HTMLButtonElement>;
7
- /** Sets loading state for Button. */
8
- loading?: boolean;
9
- /** Sets the text transformation property of a button. */
10
- textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
11
- };
1
+ import { ButtonProps as MuiButtonProps } from '@material-ui/core/Button';
2
+ import React, { RefObject } from 'react';
3
+ export declare type ButtonProps<C extends React.ElementType = 'button'> = MuiButtonProps<C, {
4
+ component?: C;
5
+ }> & {
6
+ ButtonRef?: RefObject<HTMLButtonElement>;
7
+ /** Sets loading state for Button. */
8
+ loading?: boolean;
9
+ /** Sets the text transformation property of a button. */
10
+ textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
11
+ };
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from './ButtonProps';
2
+ export declare const useButtonStyles: (props: ButtonProps<"button">) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,16 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+
3
+ var useButtonStyles = makeStyles(function () { return ({
4
+ root: {
5
+ minWidth: 'unset',
6
+ },
7
+ label: {
8
+ textTransform: function (_a) {
9
+ var textTransform = _a.textTransform;
10
+ return textTransform;
11
+ },
12
+ },
13
+ }); });
14
+
15
+ export { useButtonStyles };
16
+ //# sourceMappingURL=ButtonStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonStyles.js","sources":["../../../../src/components/Button/ButtonStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\nimport { ButtonProps } from './ButtonProps'\n\nexport const useButtonStyles = makeStyles<Theme, ButtonProps>(() => ({\n root: {\n minWidth: 'unset',\n },\n label: {\n textTransform: ({ textTransform }) => textTransform,\n },\n}))\n"],"names":[],"mappings":";;IAGa,eAAe,GAAG,UAAU,CAAqB,YAAA,EAAM,QAAC;AACnE,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;AACD,IAAA,KAAK,EAAE;QACL,aAAa,EAAE,UAAC,EAAiB,EAAA;AAAf,YAAA,IAAA,aAAa,GAAA,EAAA,CAAA,aAAA;AAAO,YAAA,OAAA,aAAa;SAAA;AACpD,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -1,2 +1,2 @@
1
- export { Button as default } from './Button';
2
- export { ButtonProps } from './ButtonProps';
1
+ export { Button as default } from './Button';
2
+ export { ButtonProps } from './ButtonProps';
@@ -1 +1 @@
1
- export { ButtonBase as default, ButtonBaseProps } from '@material-ui/core';
1
+ export { ButtonBase as default, ButtonBaseProps } from '@material-ui/core';
@@ -1 +1 @@
1
- export { default, ButtonGroupProps } from '@material-ui/core/ButtonGroup';
1
+ export { default, ButtonGroupProps } from '@material-ui/core/ButtonGroup';
@@ -1 +1 @@
1
- export { default, CardProps } from '@material-ui/core/Card';
1
+ export { default, CardProps } from '@material-ui/core/Card';
@@ -1 +1 @@
1
- export { default, CardActionAreaProps } from '@material-ui/core/CardActionArea';
1
+ export { default, CardActionAreaProps } from '@material-ui/core/CardActionArea';
@@ -1 +1 @@
1
- export { default, CardActionsProps } from '@material-ui/core/CardActions';
1
+ export { default, CardActionsProps } from '@material-ui/core/CardActions';
@@ -1 +1 @@
1
- export { default, CardContentProps } from '@material-ui/core/CardContent';
1
+ export { default, CardContentProps } from '@material-ui/core/CardContent';
@@ -1 +1 @@
1
- export { default, CardHeaderProps } from '@material-ui/core/CardHeader';
1
+ export { default, CardHeaderProps } from '@material-ui/core/CardHeader';
@@ -1 +1 @@
1
- export { default, CardMediaProps } from '@material-ui/core/CardMedia';
1
+ export { default, CardMediaProps } from '@material-ui/core/CardMedia';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { CheckboxProps } from './CheckboxProps';
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "color" | "translate" | "hidden" | "size" | "style" | "icon" | "disabled" | "aria-describedby" | "aria-hidden" | "aria-label" | "className" | "form" | "label" | "slot" | "title" | "id" | "lang" | "name" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "readOnly" | "required" | "checked" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "indeterminate" | "checkedIcon" | "edge" | "inputProps" | "inputRef" | "LabelProps" | "indeterminateIcon"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,14 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import MuiCheckbox from '@material-ui/core/Checkbox';
4
+ import FormControlLabel from '@material-ui/core/FormControlLabel';
5
+
6
+ var Checkbox = forwardRef(function (props, ref) {
7
+ var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
8
+ var control = React.createElement(MuiCheckbox, __assign({ disabled: label ? undefined : disabled }, muiProps));
9
+ return label ? (React.createElement(FormControlLabel, __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
10
+ });
11
+ Checkbox.displayName = 'Checkbox';
12
+
13
+ export { Checkbox };
14
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sources":["../../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport MuiCheckbox from '@material-ui/core/Checkbox'\n\nimport FormControlLabel from '../FormControlLabel'\nimport { CheckboxProps } from './CheckboxProps'\n\nexport const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {\n const { label, disabled, LabelProps, ...muiProps } = props\n const control = <MuiCheckbox disabled={label ? undefined : disabled} {...muiProps} />\n return label ? (\n <FormControlLabel disabled={disabled} inputRef={ref} control={control} label={label} {...LabelProps} />\n ) : (\n control\n )\n})\n\nCheckbox.displayName = 'Checkbox'\n"],"names":[],"mappings":";;;;;IAMa,QAAQ,GAAG,UAAU,CAAkC,UAAC,KAAK,EAAE,GAAG,EAAA;IACrE,IAAA,KAAK,GAAwC,KAAK,CAAA,KAA7C,EAAE,QAAQ,GAA8B,KAAK,CAAnC,QAAA,EAAE,UAAU,GAAkB,KAAK,WAAvB,EAAK,QAAQ,UAAK,KAAK,EAApD,CAA4C,OAAA,EAAA,UAAA,EAAA,YAAA,CAAA,CAAF;AAChD,IAAA,IAAM,OAAO,GAAG,KAAA,CAAA,aAAA,CAAC,WAAW,EAAC,QAAA,CAAA,EAAA,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,QAAQ,EAAM,EAAA,QAAQ,EAAI;AACrF,IAAA,OAAO,KAAK,IACV,KAAC,CAAA,aAAA,CAAA,gBAAgB,EAAC,QAAA,CAAA,EAAA,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAM,EAAA,UAAU,CAAI,CAAA,KAEvG,OAAO,CACR;AACH,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
@@ -1,8 +1,8 @@
1
- import { CheckboxProps as MuiCheckboxProps } from '@material-ui/core/Checkbox';
2
- import { FormControlLabelProps } from '../FormControlLabel';
3
- export interface CheckboxProps extends MuiCheckboxProps {
4
- /** Adds a text label to the Checkbox. If provided, the Checkbox will be wrapped by a FormControlLabel component. */
5
- label: string;
6
- /** Props applied to the FormControlLabel component wrapping a checkbox if a label is given. */
7
- LabelProps: Omit<FormControlLabelProps, 'control'>;
8
- }
1
+ import { CheckboxProps as MuiCheckboxProps } from '@material-ui/core/Checkbox';
2
+ import { FormControlLabelProps } from '../FormControlLabel';
3
+ export interface CheckboxProps extends MuiCheckboxProps {
4
+ /** Adds a text label to the Checkbox. If provided, the Checkbox will be wrapped by a FormControlLabel component. */
5
+ label: string;
6
+ /** Props applied to the FormControlLabel component wrapping a checkbox if a label is given. */
7
+ LabelProps: Omit<FormControlLabelProps, 'control'>;
8
+ }
@@ -1,2 +1,2 @@
1
- export { Checkbox as default } from './Checkbox';
2
- export { CheckboxProps } from './CheckboxProps';
1
+ export { Checkbox as default } from './Checkbox';
2
+ export { CheckboxProps } from './CheckboxProps';
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ChipProps } from './ChipProps';
3
- export declare const Chip: {
4
- <C extends React.ElementType<any> = "div">(props: ChipProps<C>): JSX.Element;
5
- displayName: string;
6
- };
1
+ import React from 'react';
2
+ import { ChipProps } from './ChipProps';
3
+ export declare const Chip: {
4
+ <C extends React.ElementType<any> = "div">(props: ChipProps<C>): JSX.Element;
5
+ displayName: string;
6
+ };