@popmenu/common-ui 0.126.0 → 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 (426) hide show
  1. package/build/cjs/components/Avatar/Avatar.d.ts +3 -0
  2. package/build/{components → cjs/components}/Avatar/AvatarProps.d.ts +22 -22
  3. package/build/{components → cjs/components}/Avatar/avatar.styles.d.ts +2 -2
  4. package/build/cjs/components/Avatar/index.d.ts +2 -0
  5. package/build/{components → cjs/components}/Avatar/util/useImageProps.d.ts +10 -10
  6. package/build/{components → cjs/components}/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
  7. package/build/{components → cjs/components}/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -1
  8. package/build/cjs/components/BrowserSilhouette/index.d.ts +1 -0
  9. package/build/{components → cjs/components}/Button/Button.d.ts +6 -6
  10. package/build/{components → cjs/components}/Button/ButtonProps.d.ts +11 -11
  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/{components → cjs/components}/Checkbox/CheckboxProps.d.ts +7 -8
  15. package/build/cjs/components/Checkbox/index.d.ts +2 -0
  16. package/build/{components → cjs/components}/Chip/Chip.d.ts +6 -6
  17. package/build/{components → cjs/components}/Chip/ChipProps.d.ts +8 -8
  18. package/build/{components → cjs/components}/Chip/ChipStyles.d.ts +2 -2
  19. package/build/cjs/components/Chip/index.d.ts +2 -0
  20. package/build/{components → cjs/components}/CollapsibleText/CollapsibleText.d.ts +3 -3
  21. package/build/{components → cjs/components}/CollapsibleText/CollapsibleTextProps.d.ts +13 -13
  22. package/build/{components → cjs/components}/CollapsibleText/CollapsibleTextStyles.d.ts +5 -5
  23. package/build/cjs/components/CollapsibleText/index.d.ts +2 -0
  24. package/build/{components → cjs/components}/Divider/Divider.d.ts +3 -3
  25. package/build/{components → cjs/components}/Divider/DividerProps.d.ts +17 -17
  26. package/build/cjs/components/Divider/index.d.ts +2 -0
  27. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -2
  28. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -2
  29. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -2
  30. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -4
  31. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -3
  32. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -29
  33. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -2
  34. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -2
  35. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -2
  36. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -2
  37. package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -2
  38. package/build/{components → cjs/components}/FollowerAuthenticationDialog/context.d.ts +4 -4
  39. package/build/cjs/components/FollowerAuthenticationDialog/index.d.ts +2 -0
  40. package/build/{components → cjs/components}/FollowerAuthenticationDialog/theme.d.ts +35 -35
  41. package/build/{components → cjs/components}/Icon/Icon.d.ts +4 -4
  42. package/build/{components → cjs/components}/Icon/IconProps.d.ts +17 -17
  43. package/build/{components → cjs/components}/Icon/IconStyles.d.ts +2 -2
  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/{components → cjs/components}/IconButton/IconButtonProps.d.ts +2 -2
  47. package/build/cjs/components/IconButton/index.d.ts +2 -0
  48. package/build/{components → cjs/components}/Link/Link.d.ts +11 -11
  49. package/build/{components → cjs/components}/Link/LinkStyles.d.ts +2 -2
  50. package/build/cjs/components/Link/index.d.ts +2 -0
  51. package/build/{components → cjs/components}/NumberField/NumberField.d.ts +3 -3
  52. package/build/{components → cjs/components}/NumberField/NumberFieldProps.d.ts +12 -12
  53. package/build/{components → cjs/components}/NumberField/NumberFieldStyles.d.ts +2 -2
  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/{components → cjs/components}/PaperContent/PaperContent.d.ts +2 -2
  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/{components → cjs/components}/Radio/RadioProps.d.ts +7 -8
  61. package/build/cjs/components/Radio/index.d.ts +2 -0
  62. package/build/{components → cjs/components}/SplitInput/SplitInput.d.ts +3 -3
  63. package/build/{components → cjs/components}/SplitInput/SplitInputProps.d.ts +20 -20
  64. package/build/{components → cjs/components}/SplitInput/SplitInputStyles.d.ts +2 -2
  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/{components → cjs/components}/Switch/SwitchProps.d.ts +7 -8
  68. package/build/cjs/components/Switch/index.d.ts +2 -0
  69. package/build/{components → cjs/components}/Switch/switch.styles.d.ts +2 -2
  70. package/build/{components → cjs/components}/TabPanel/TabPanel.d.ts +3 -3
  71. package/build/{components → cjs/components}/TabPanel/TabPanelProps.d.ts +3 -3
  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/{components → cjs/components}/ToggleButton/ToggleButtonProps.d.ts +4 -4
  75. package/build/{components → cjs/components}/ToggleButton/ToggleButtonStyles.d.ts +2 -2
  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/{components → cjs/components}/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -6
  79. package/build/{components → cjs/components}/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -1
  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/{components → cjs/components}/Tooltip/TooltipStyles.d.ts +2 -2
  84. package/build/cjs/components/Tooltip/index.d.ts +2 -0
  85. package/build/{components → cjs/components}/Typography/Typography.d.ts +9 -9
  86. package/build/{components → cjs/components}/Typography/TypographyProps.d.ts +14 -15
  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/{hooks → cjs/hooks}/index.d.ts +2 -2
  91. package/build/{hooks → cjs/hooks}/useCollapsibleText.d.ts +9 -9
  92. package/build/{hooks → cjs/hooks}/useTabs/index.d.ts +1 -1
  93. package/build/{hooks → cjs/hooks}/useTabs/useTabs.d.ts +3 -3
  94. package/build/{hooks → cjs/hooks}/useTabs/useTabsOptions.d.ts +3 -3
  95. package/build/{hooks → cjs/hooks}/useTabs/useTabsResult.d.ts +22 -22
  96. package/build/{index.d.ts → cjs/index.d.ts} +3 -3
  97. package/build/cjs/index.js +1303 -0
  98. package/build/cjs/index.js.map +1 -0
  99. package/build/{types → cjs/types}/index.d.ts +2 -2
  100. package/build/{util → cjs/util}/colors/alpha.d.ts +1 -1
  101. package/build/{util → cjs/util}/colors/darken.d.ts +1 -1
  102. package/build/{util → cjs/util}/colors/decomposeColor.d.ts +1 -1
  103. package/build/{util → cjs/util}/colors/getLuminance.d.ts +1 -1
  104. package/build/{util → cjs/util}/colors/hexToRgb.d.ts +1 -1
  105. package/build/{util → cjs/util}/colors/index.d.ts +8 -8
  106. package/build/{util → cjs/util}/colors/lighten.d.ts +1 -1
  107. package/build/{util → cjs/util}/colors/recomposeColor.d.ts +1 -1
  108. package/build/{util → cjs/util}/colors/rgbToHex.d.ts +1 -1
  109. package/build/{util → cjs/util}/createTheme.d.ts +1 -1
  110. package/build/{util → cjs/util}/index.d.ts +4 -4
  111. package/build/{util → cjs/util}/makeStyles.d.ts +1 -1
  112. package/build/esm/components/Avatar/Avatar.d.ts +3 -0
  113. package/build/esm/components/Avatar/Avatar.js +39 -0
  114. package/build/esm/components/Avatar/Avatar.js.map +1 -0
  115. package/build/esm/components/Avatar/AvatarProps.d.ts +22 -0
  116. package/build/esm/components/Avatar/avatar.styles.d.ts +2 -0
  117. package/build/esm/components/Avatar/avatar.styles.js +41 -0
  118. package/build/esm/components/Avatar/avatar.styles.js.map +1 -0
  119. package/build/esm/components/Avatar/index.d.ts +2 -0
  120. package/build/esm/components/Avatar/util/useImageProps.d.ts +10 -0
  121. package/build/esm/components/Avatar/util/useImageProps.js +21 -0
  122. package/build/esm/components/Avatar/util/useImageProps.js.map +1 -0
  123. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -0
  124. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js +18 -0
  125. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -0
  126. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -0
  127. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +25 -0
  128. package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -0
  129. package/build/esm/components/BrowserSilhouette/index.d.ts +1 -0
  130. package/build/esm/components/Button/Button.d.ts +6 -0
  131. package/build/esm/components/Button/Button.js +21 -0
  132. package/build/esm/components/Button/Button.js.map +1 -0
  133. package/build/esm/components/Button/ButtonProps.d.ts +11 -0
  134. package/build/esm/components/Button/ButtonStyles.d.ts +2 -0
  135. package/build/esm/components/Button/ButtonStyles.js +16 -0
  136. package/build/esm/components/Button/ButtonStyles.js.map +1 -0
  137. package/build/esm/components/Button/index.d.ts +2 -0
  138. package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
  139. package/build/esm/components/Checkbox/Checkbox.js +13 -0
  140. package/build/esm/components/Checkbox/Checkbox.js.map +1 -0
  141. package/build/esm/components/Checkbox/CheckboxProps.d.ts +7 -0
  142. package/build/esm/components/Checkbox/index.d.ts +2 -0
  143. package/build/esm/components/Chip/Chip.d.ts +6 -0
  144. package/build/esm/components/Chip/Chip.js +23 -0
  145. package/build/esm/components/Chip/Chip.js.map +1 -0
  146. package/build/esm/components/Chip/ChipProps.d.ts +8 -0
  147. package/build/esm/components/Chip/ChipStyles.d.ts +2 -0
  148. package/build/esm/components/Chip/ChipStyles.js +83 -0
  149. package/build/esm/components/Chip/ChipStyles.js.map +1 -0
  150. package/build/esm/components/Chip/index.d.ts +2 -0
  151. package/build/esm/components/CollapsibleText/CollapsibleText.d.ts +3 -0
  152. package/build/esm/components/CollapsibleText/CollapsibleText.js +40 -0
  153. package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -0
  154. package/build/esm/components/CollapsibleText/CollapsibleTextProps.d.ts +13 -0
  155. package/build/esm/components/CollapsibleText/CollapsibleTextStyles.d.ts +5 -0
  156. package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js +24 -0
  157. package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js.map +1 -0
  158. package/build/esm/components/CollapsibleText/index.d.ts +2 -0
  159. package/build/esm/components/Divider/Divider.d.ts +3 -0
  160. package/build/esm/components/Divider/Divider.js +70 -0
  161. package/build/esm/components/Divider/Divider.js.map +1 -0
  162. package/build/esm/components/Divider/DividerProps.d.ts +17 -0
  163. package/build/esm/components/Divider/index.d.ts +2 -0
  164. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -0
  165. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js +86 -0
  166. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js.map +1 -0
  167. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -0
  168. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js +12 -0
  169. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js.map +1 -0
  170. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -0
  171. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js +24 -0
  172. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map +1 -0
  173. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -0
  174. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js +18 -0
  175. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map +1 -0
  176. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -0
  177. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js +37 -0
  178. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js.map +1 -0
  179. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -0
  180. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -0
  181. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js +13 -0
  182. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js.map +1 -0
  183. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -0
  184. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +149 -0
  185. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -0
  186. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -0
  187. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +15 -0
  188. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -0
  189. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -0
  190. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +15 -0
  191. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -0
  192. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -0
  193. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js +13 -0
  194. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js.map +1 -0
  195. package/build/esm/components/FollowerAuthenticationDialog/context.d.ts +4 -0
  196. package/build/esm/components/FollowerAuthenticationDialog/context.js +14 -0
  197. package/build/esm/components/FollowerAuthenticationDialog/context.js.map +1 -0
  198. package/build/esm/components/FollowerAuthenticationDialog/index.d.ts +2 -0
  199. package/build/esm/components/FollowerAuthenticationDialog/theme.d.ts +35 -0
  200. package/build/esm/components/FollowerAuthenticationDialog/theme.js +36 -0
  201. package/build/esm/components/FollowerAuthenticationDialog/theme.js.map +1 -0
  202. package/build/esm/components/Icon/Icon.d.ts +4 -0
  203. package/build/esm/components/Icon/Icon.js +29 -0
  204. package/build/esm/components/Icon/Icon.js.map +1 -0
  205. package/build/esm/components/Icon/IconProps.d.ts +17 -0
  206. package/build/esm/components/Icon/IconStyles.d.ts +2 -0
  207. package/build/esm/components/Icon/IconStyles.js +43 -0
  208. package/build/esm/components/Icon/IconStyles.js.map +1 -0
  209. package/build/esm/components/Icon/index.d.ts +2 -0
  210. package/build/esm/components/IconButton/IconButton.d.ts +3 -0
  211. package/build/esm/components/IconButton/IconButton.js +14 -0
  212. package/build/esm/components/IconButton/IconButton.js.map +1 -0
  213. package/build/esm/components/IconButton/IconButtonProps.d.ts +2 -0
  214. package/build/esm/components/IconButton/index.d.ts +2 -0
  215. package/build/esm/components/Link/Link.d.ts +11 -0
  216. package/build/esm/components/Link/Link.js +18 -0
  217. package/build/esm/components/Link/Link.js.map +1 -0
  218. package/build/esm/components/Link/LinkStyles.d.ts +2 -0
  219. package/build/esm/components/Link/LinkStyles.js +15 -0
  220. package/build/esm/components/Link/LinkStyles.js.map +1 -0
  221. package/build/esm/components/Link/index.d.ts +2 -0
  222. package/build/esm/components/NumberField/NumberField.d.ts +3 -0
  223. package/build/esm/components/NumberField/NumberField.js +20 -0
  224. package/build/esm/components/NumberField/NumberField.js.map +1 -0
  225. package/build/esm/components/NumberField/NumberFieldProps.d.ts +12 -0
  226. package/build/esm/components/NumberField/NumberFieldStyles.d.ts +2 -0
  227. package/build/esm/components/NumberField/NumberFieldStyles.js +32 -0
  228. package/build/esm/components/NumberField/NumberFieldStyles.js.map +1 -0
  229. package/build/esm/components/NumberField/index.d.ts +2 -0
  230. package/build/esm/components/Paper/Paper.d.ts +6 -0
  231. package/build/esm/components/Paper/Paper.js +28 -0
  232. package/build/esm/components/Paper/Paper.js.map +1 -0
  233. package/build/esm/components/Paper/index.d.ts +2 -0
  234. package/build/esm/components/PaperContent/PaperContent.d.ts +2 -0
  235. package/build/esm/components/PaperContent/PaperContent.js +10 -0
  236. package/build/esm/components/PaperContent/PaperContent.js.map +1 -0
  237. package/build/esm/components/PaperContent/index.d.ts +1 -0
  238. package/build/esm/components/Radio/Radio.d.ts +3 -0
  239. package/build/esm/components/Radio/Radio.js +13 -0
  240. package/build/esm/components/Radio/Radio.js.map +1 -0
  241. package/build/esm/components/Radio/RadioProps.d.ts +7 -0
  242. package/build/esm/components/Radio/index.d.ts +2 -0
  243. package/build/esm/components/SplitInput/SplitInput.d.ts +3 -0
  244. package/build/esm/components/SplitInput/SplitInput.js +21 -0
  245. package/build/esm/components/SplitInput/SplitInput.js.map +1 -0
  246. package/build/esm/components/SplitInput/SplitInputProps.d.ts +20 -0
  247. package/build/esm/components/SplitInput/SplitInputStyles.d.ts +2 -0
  248. package/build/esm/components/SplitInput/SplitInputStyles.js +29 -0
  249. package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -0
  250. package/build/esm/components/SplitInput/index.d.ts +2 -0
  251. package/build/esm/components/Switch/Switch.d.ts +3 -0
  252. package/build/esm/components/Switch/Switch.js +15 -0
  253. package/build/esm/components/Switch/Switch.js.map +1 -0
  254. package/build/esm/components/Switch/SwitchProps.d.ts +7 -0
  255. package/build/esm/components/Switch/index.d.ts +2 -0
  256. package/build/esm/components/Switch/switch.styles.d.ts +2 -0
  257. package/build/esm/components/Switch/switch.styles.js +17 -0
  258. package/build/esm/components/Switch/switch.styles.js.map +1 -0
  259. package/build/esm/components/TabPanel/TabPanel.d.ts +3 -0
  260. package/build/esm/components/TabPanel/TabPanel.js +10 -0
  261. package/build/esm/components/TabPanel/TabPanel.js.map +1 -0
  262. package/build/esm/components/TabPanel/TabPanelProps.d.ts +3 -0
  263. package/build/esm/components/TabPanel/index.d.ts +2 -0
  264. package/build/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
  265. package/build/esm/components/ToggleButton/ToggleButton.js +20 -0
  266. package/build/esm/components/ToggleButton/ToggleButton.js.map +1 -0
  267. package/build/esm/components/ToggleButton/ToggleButtonProps.d.ts +4 -0
  268. package/build/esm/components/ToggleButton/ToggleButtonStyles.d.ts +2 -0
  269. package/build/esm/components/ToggleButton/ToggleButtonStyles.js +19 -0
  270. package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -0
  271. package/build/esm/components/ToggleButton/index.d.ts +2 -0
  272. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
  273. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js +20 -0
  274. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -0
  275. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -0
  276. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -0
  277. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +12 -0
  278. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -0
  279. package/build/esm/components/ToggleButtonGroup/index.d.ts +2 -0
  280. package/build/esm/components/Tooltip/Tooltip.d.ts +3 -0
  281. package/build/esm/components/Tooltip/Tooltip.js +13 -0
  282. package/build/esm/components/Tooltip/Tooltip.js.map +1 -0
  283. package/build/esm/components/Tooltip/TooltipProps.d.ts +1 -0
  284. package/build/esm/components/Tooltip/TooltipStyles.d.ts +2 -0
  285. package/build/esm/components/Tooltip/TooltipStyles.js +13 -0
  286. package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -0
  287. package/build/esm/components/Tooltip/index.d.ts +2 -0
  288. package/build/esm/components/Typography/Typography.d.ts +9 -0
  289. package/build/esm/components/Typography/Typography.js +17 -0
  290. package/build/esm/components/Typography/Typography.js.map +1 -0
  291. package/build/esm/components/Typography/TypographyProps.d.ts +14 -0
  292. package/build/esm/components/Typography/TypographyProps.js +6 -0
  293. package/build/esm/components/Typography/TypographyProps.js.map +1 -0
  294. package/build/esm/components/Typography/TypographyStyles.d.ts +10 -0
  295. package/build/esm/components/Typography/TypographyStyles.js +76 -0
  296. package/build/esm/components/Typography/TypographyStyles.js.map +1 -0
  297. package/build/esm/components/Typography/index.d.ts +2 -0
  298. package/build/esm/components/index.d.ts +45 -0
  299. package/build/esm/hooks/index.d.ts +2 -0
  300. package/build/esm/hooks/useCollapsibleText.d.ts +9 -0
  301. package/build/esm/hooks/useCollapsibleText.js +17 -0
  302. package/build/esm/hooks/useCollapsibleText.js.map +1 -0
  303. package/build/esm/hooks/useTabs/index.d.ts +1 -0
  304. package/build/esm/hooks/useTabs/useTabs.d.ts +3 -0
  305. package/build/esm/hooks/useTabs/useTabs.js +35 -0
  306. package/build/esm/hooks/useTabs/useTabs.js.map +1 -0
  307. package/build/esm/hooks/useTabs/useTabsOptions.d.ts +3 -0
  308. package/build/esm/hooks/useTabs/useTabsResult.d.ts +22 -0
  309. package/build/esm/index.d.ts +3 -0
  310. package/build/esm/index.js +28 -0
  311. package/build/esm/index.js.map +1 -0
  312. package/build/esm/types/index.d.ts +2 -0
  313. package/build/esm/util/colors/alpha.d.ts +1 -0
  314. package/build/esm/util/colors/darken.d.ts +1 -0
  315. package/build/esm/util/colors/decomposeColor.d.ts +1 -0
  316. package/build/esm/util/colors/getLuminance.d.ts +1 -0
  317. package/build/esm/util/colors/hexToRgb.d.ts +1 -0
  318. package/build/esm/util/colors/index.d.ts +8 -0
  319. package/build/esm/util/colors/lighten.d.ts +1 -0
  320. package/build/esm/util/colors/recomposeColor.d.ts +1 -0
  321. package/build/esm/util/colors/rgbToHex.d.ts +1 -0
  322. package/build/esm/util/createTheme.d.ts +1 -0
  323. package/build/esm/util/index.d.ts +4 -0
  324. package/build/esm/util/makeStyles.d.ts +1 -0
  325. package/package.json +8 -8
  326. package/build/components/Accordion/index.d.ts +0 -1
  327. package/build/components/AccordionActions/index.d.ts +0 -1
  328. package/build/components/AccordionDetails/index.d.ts +0 -1
  329. package/build/components/AccordionSummary/index.d.ts +0 -1
  330. package/build/components/Alert/index.d.ts +0 -1
  331. package/build/components/AppBar/index.d.ts +0 -1
  332. package/build/components/Avatar/Avatar.d.ts +0 -3
  333. package/build/components/Avatar/index.d.ts +0 -2
  334. package/build/components/Badge/index.d.ts +0 -1
  335. package/build/components/Box/Box.d.ts +0 -3
  336. package/build/components/Box/BoxProps.d.ts +0 -5
  337. package/build/components/Box/BoxStyles.d.ts +0 -1
  338. package/build/components/Box/index.d.ts +0 -7
  339. package/build/components/Breadcrumbs/index.d.ts +0 -1
  340. package/build/components/BrowserSilhouette/index.d.ts +0 -1
  341. package/build/components/Button/ButtonStyles.d.ts +0 -2
  342. package/build/components/Button/index.d.ts +0 -2
  343. package/build/components/ButtonBase/index.d.ts +0 -1
  344. package/build/components/ButtonGroup/index.d.ts +0 -1
  345. package/build/components/Card/index.d.ts +0 -1
  346. package/build/components/CardActionArea/index.d.ts +0 -1
  347. package/build/components/CardActions/index.d.ts +0 -1
  348. package/build/components/CardContent/index.d.ts +0 -1
  349. package/build/components/CardHeader/index.d.ts +0 -1
  350. package/build/components/CardMedia/index.d.ts +0 -1
  351. package/build/components/Checkbox/Checkbox.d.ts +0 -3
  352. package/build/components/Checkbox/index.d.ts +0 -2
  353. package/build/components/Chip/index.d.ts +0 -2
  354. package/build/components/CircularProgress/index.d.ts +0 -1
  355. package/build/components/ClickAwayListener/index.d.ts +0 -1
  356. package/build/components/CollapsibleText/index.d.ts +0 -2
  357. package/build/components/Dialog/index.d.ts +0 -1
  358. package/build/components/DialogActions/index.d.ts +0 -1
  359. package/build/components/DialogContent/index.d.ts +0 -1
  360. package/build/components/DialogContentText/index.d.ts +0 -1
  361. package/build/components/DialogTitle/index.d.ts +0 -1
  362. package/build/components/Divider/index.d.ts +0 -2
  363. package/build/components/Drawer/index.d.ts +0 -1
  364. package/build/components/Fab/index.d.ts +0 -1
  365. package/build/components/FollowerAuthenticationDialog/index.d.ts +0 -2
  366. package/build/components/FormControl/index.d.ts +0 -1
  367. package/build/components/FormControlLabel/index.d.ts +0 -1
  368. package/build/components/FormLabel/index.d.ts +0 -1
  369. package/build/components/Grid/index.d.ts +0 -1
  370. package/build/components/GridList/index.d.ts +0 -1
  371. package/build/components/Hidden/index.d.ts +0 -1
  372. package/build/components/Icon/index.d.ts +0 -2
  373. package/build/components/IconButton/IconButton.d.ts +0 -3
  374. package/build/components/IconButton/index.d.ts +0 -2
  375. package/build/components/InputAdornment/index.d.ts +0 -1
  376. package/build/components/LinearProgress/index.d.ts +0 -1
  377. package/build/components/Link/index.d.ts +0 -2
  378. package/build/components/List/index.d.ts +0 -1
  379. package/build/components/ListItem/index.d.ts +0 -1
  380. package/build/components/ListItemAvatar/index.d.ts +0 -1
  381. package/build/components/ListItemIcon/index.d.ts +0 -1
  382. package/build/components/ListItemSecondaryAction/index.d.ts +0 -1
  383. package/build/components/ListItemText/index.d.ts +0 -1
  384. package/build/components/Menu/index.d.ts +0 -1
  385. package/build/components/MenuItem/index.d.ts +0 -1
  386. package/build/components/MenuList/index.d.ts +0 -1
  387. package/build/components/Modal/index.d.ts +0 -1
  388. package/build/components/NumberField/index.d.ts +0 -2
  389. package/build/components/Paper/Paper.d.ts +0 -6
  390. package/build/components/Paper/index.d.ts +0 -1
  391. package/build/components/PaperContent/index.d.ts +0 -1
  392. package/build/components/Popover/index.d.ts +0 -1
  393. package/build/components/Popper/index.d.ts +0 -1
  394. package/build/components/Radio/Radio.d.ts +0 -3
  395. package/build/components/Radio/index.d.ts +0 -2
  396. package/build/components/SplitInput/index.d.ts +0 -2
  397. package/build/components/Step/index.d.ts +0 -1
  398. package/build/components/StepButton/index.d.ts +0 -1
  399. package/build/components/StepConnector/index.d.ts +0 -1
  400. package/build/components/StepContent/index.d.ts +0 -1
  401. package/build/components/StepIcon/index.d.ts +0 -1
  402. package/build/components/StepLabel/index.d.ts +0 -1
  403. package/build/components/Stepper/index.d.ts +0 -1
  404. package/build/components/Switch/Switch.d.ts +0 -3
  405. package/build/components/Switch/index.d.ts +0 -2
  406. package/build/components/Tab/index.d.ts +0 -1
  407. package/build/components/TabPanel/index.d.ts +0 -2
  408. package/build/components/Tabs/index.d.ts +0 -1
  409. package/build/components/TextField/index.d.ts +0 -1
  410. package/build/components/ThemeProvider/index.d.ts +0 -1
  411. package/build/components/ToggleButton/ToggleButton.d.ts +0 -3
  412. package/build/components/ToggleButton/index.d.ts +0 -2
  413. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -3
  414. package/build/components/ToggleButtonGroup/index.d.ts +0 -2
  415. package/build/components/Toolbar/index.d.ts +0 -1
  416. package/build/components/Tooltip/Tooltip.d.ts +0 -3
  417. package/build/components/Tooltip/TooltipProps.d.ts +0 -1
  418. package/build/components/Tooltip/index.d.ts +0 -2
  419. package/build/components/Typography/TypographyStyles.d.ts +0 -4
  420. package/build/components/Typography/index.d.ts +0 -2
  421. package/build/components/index.d.ts +0 -78
  422. package/build/index.es.js +0 -1479
  423. package/build/index.es.js.map +0 -1
  424. package/build/index.js +0 -1971
  425. package/build/index.js.map +0 -1
  426. package/build/util/ServerStyleSheets.d.ts +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconStyles.js","sources":["../../../../src/components/Icon/IconStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { IconProps } from './IconProps'\n\nexport const useIconStyles = makeStyles<Theme, IconProps>(({ spacing, palette }) => {\n const getFontSize = ({ size }: IconProps) => {\n const sizes = {\n inherit: 'inherit',\n small: spacing(1.5),\n medium: spacing(2),\n large: spacing(2.5),\n 'extra-large': spacing(3),\n }\n return size ? sizes[size] : 'inherit'\n }\n\n const getColor = (props: IconProps) => {\n const semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error']\n let value = 'inherit'\n if (props.color) {\n if (semanticColors.includes(props.color.split('.')[0])) {\n const [color, variant = 'main'] = props.color.split('.')\n // @ts-expect-error - todo.\n value = palette[color][variant]\n } else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {\n value = props.color\n }\n }\n return value\n }\n\n return {\n root: {\n color: getColor,\n fontSize: getFontSize,\n width: '1em',\n height: '1em',\n strokeWidth: '1.3px',\n },\n }\n})\n"],"names":[],"mappings":";;AAGa,IAAA,aAAa,GAAG,UAAU,CAAmB,UAAC,EAAoB,EAAA;QAAlB,OAAO,GAAA,EAAA,CAAA,OAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA;IAC3E,IAAM,WAAW,GAAG,UAAC,EAAmB,EAAA;AAAjB,QAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA;AACzB,QAAA,IAAM,KAAK,GAAG;AACZ,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC;AACnB,YAAA,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAClB,YAAA,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC;AACnB,YAAA,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;SAC1B;AACD,QAAA,OAAO,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS;AACvC,KAAC;IAED,IAAM,QAAQ,GAAG,UAAC,KAAgB,EAAA;AAChC,QAAA,IAAM,cAAc,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;QACtF,IAAI,KAAK,GAAG,SAAS;QACrB,IAAI,KAAK,CAAC,KAAK,EAAE;AACf,YAAA,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;AAChD,gBAAA,IAAA,KAA4B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAjD,KAAK,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,EAAgB,GAAA,EAAA,CAAA,CAAA,CAAA,EAAhB,OAAO,GAAG,EAAA,KAAA,MAAA,GAAA,MAAM,KAA0B;;gBAExD,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAChC;iBAAM,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE;AACrD,gBAAA,KAAK,GAAG,KAAK,CAAC,KAAK;AACpB;AACF;AACD,QAAA,OAAO,KAAK;AACd,KAAC;IAED,OAAO;AACL,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,QAAQ,EAAE,WAAW;AACrB,YAAA,KAAK,EAAE,KAAK;AACZ,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,WAAW,EAAE,OAAO;AACrB,SAAA;KACF;AACH,CAAC;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Icon, iconStaticClassName } from './Icon';
2
+ export type { IconProps } from './IconProps';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconButtonProps } from './IconButtonProps';
3
+ export declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "color" | "translate" | "hidden" | "size" | "disabled" | "aria-describedby" | "aria-hidden" | "aria-label" | "form" | "slot" | "title" | "id" | "lang" | "name" | "type" | "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" | "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" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "edge" | keyof import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").IconButtonTypeMap<{}, "button">>> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,14 @@
1
+ import { __assign } from 'tslib';
2
+ import { IconButton as IconButton$1 } from '@material-ui/core';
3
+ import React, { forwardRef } from 'react';
4
+
5
+ var IconButton = forwardRef(function (props, ref) {
6
+ return React.createElement(IconButton$1, __assign({ ref: ref }, props));
7
+ });
8
+ IconButton.displayName = 'IconButton';
9
+ IconButton.defaultProps = {
10
+ color: 'secondary',
11
+ };
12
+
13
+ export { IconButton };
14
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.js","sources":["../../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import { IconButton as MuiIconButton } from '@material-ui/core'\nimport React, { forwardRef } from 'react'\nimport { IconButtonProps } from './IconButtonProps'\n\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((props, ref) => {\n return <MuiIconButton ref={ref} {...props} />\n})\n\nIconButton.displayName = 'IconButton'\n\nIconButton.defaultProps = {\n color: 'secondary',\n}\n"],"names":["MuiIconButton"],"mappings":";;;;IAIa,UAAU,GAAG,UAAU,CAAqC,UAAC,KAAK,EAAE,GAAG,EAAA;IAClF,OAAO,KAAA,CAAA,aAAA,CAACA,YAAa,EAAC,QAAA,CAAA,EAAA,GAAG,EAAE,GAAG,EAAA,EAAM,KAAK,CAAA,CAAI;AAC/C,CAAC;AAED,UAAU,CAAC,WAAW,GAAG,YAAY;AAErC,UAAU,CAAC,YAAY,GAAG;AACxB,IAAA,KAAK,EAAE,WAAW;CACnB;;;;"}
@@ -0,0 +1,2 @@
1
+ import { IconButtonProps as MuiIconButtonProps } from '@material-ui/core';
2
+ export declare type IconButtonProps = MuiIconButtonProps;
@@ -0,0 +1,2 @@
1
+ export { IconButton } from './IconButton';
2
+ export type { IconButtonProps } from './IconButtonProps';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { LinkProps } from '@material-ui/core';
3
+ interface LinkType {
4
+ <C extends React.ElementType = 'a'>(props: LinkProps<C> & {
5
+ component?: C;
6
+ }): React.ReactElement;
7
+ defaultProps?: Partial<LinkProps>;
8
+ displayName?: string;
9
+ }
10
+ export declare const Link: LinkType;
11
+ export {};
@@ -0,0 +1,18 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import { Link as Link$1 } from '@material-ui/core';
4
+ import { useLinkStyles } from './LinkStyles.js';
5
+
6
+ // eslint-disable-next-line react/display-name -- false positive
7
+ var Link = forwardRef(function (props, ref) {
8
+ var children = props.children, muiProps = __rest(props, ["children"]);
9
+ var classes = useLinkStyles(props);
10
+ return (React.createElement(Link$1, __assign({ ref: ref, classes: { root: classes.root } }, muiProps), children));
11
+ });
12
+ Link.defaultProps = {
13
+ variant: 'body1',
14
+ };
15
+ Link.displayName = 'Link';
16
+
17
+ export { Link };
18
+ //# sourceMappingURL=Link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.js","sources":["../../../../src/components/Link/Link.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { Link as MuiLink, LinkProps } from '@material-ui/core'\n\nimport { useLinkStyles } from './LinkStyles'\n\ninterface LinkType {\n <C extends React.ElementType = 'a'>(props: LinkProps<C> & { component?: C }): React.ReactElement\n defaultProps?: Partial<LinkProps>\n displayName?: string\n}\n\n// eslint-disable-next-line react/display-name -- false positive\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {\n const { children, ...muiProps } = props\n const classes = useLinkStyles(props)\n\n return (\n <MuiLink ref={ref} classes={{ root: classes.root }} {...muiProps}>\n {children}\n </MuiLink>\n )\n}) as LinkType\n\nLink.defaultProps = {\n variant: 'body1',\n}\n\nLink.displayName = 'Link'\n"],"names":["MuiLink"],"mappings":";;;;;AAWA;IACa,IAAI,GAAG,UAAU,CAA+B,UAAC,KAAK,EAAE,GAAG,EAAA;IAC9D,IAAA,QAAQ,GAAkB,KAAK,CAAvB,QAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAAjC,CAAyB,UAAA,CAAA,CAAF;AAC7B,IAAA,IAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC;IAEpC,QACE,oBAACA,MAAO,EAAA,QAAA,CAAA,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAAA,EAAM,QAAQ,CAC7D,EAAA,QAAQ,CACD;AAEd,CAAC;AAED,IAAI,CAAC,YAAY,GAAG;AAClB,IAAA,OAAO,EAAE,OAAO;CACjB;AAED,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
@@ -0,0 +1,2 @@
1
+ import { LinkProps } from '@material-ui/core';
2
+ export declare const useLinkStyles: (props: LinkProps<"a", {}>) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,15 @@
1
+ import { __assign } from 'tslib';
2
+ import { makeStyles } from '@material-ui/core';
3
+ import { iconStaticClassName } from '../Icon/Icon.js';
4
+
5
+ var useLinkStyles = makeStyles(function (theme) { return ({
6
+ root: function (props) {
7
+ var _a;
8
+ return (__assign(__assign({ display: 'flex' }, (props.color === undefined && { color: theme.palette.info.main })), (_a = {}, _a["& ." + iconStaticClassName] = {
9
+ alignSelf: 'center',
10
+ }, _a)));
11
+ },
12
+ }); });
13
+
14
+ export { useLinkStyles };
15
+ //# sourceMappingURL=LinkStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkStyles.js","sources":["../../../../src/components/Link/LinkStyles.ts"],"sourcesContent":["import { LinkProps, makeStyles, Theme } from '@material-ui/core'\nimport { iconStaticClassName } from '../Icon'\n\nexport const useLinkStyles = makeStyles<Theme, LinkProps>((theme) => ({\n root: (props) => ({\n display: 'flex',\n ...(props.color === undefined && { color: theme.palette.info.main }),\n [`& .${iconStaticClassName}`]: {\n alignSelf: 'center',\n },\n }),\n}))\n"],"names":[],"mappings":";;;;AAGa,IAAA,aAAa,GAAG,UAAU,CAAmB,UAAC,KAAK,EAAK,EAAA,QAAC;IACpE,IAAI,EAAE,UAAC,KAAK,EAAA;;QAAK,QAAA,QAAA,CAAA,QAAA,CAAA,EACf,OAAO,EAAE,MAAM,EAAA,GACX,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAC,GAAA,EAAA,GAAA,EAAA,EAAA,EAAA,CACnE,KAAM,GAAA,mBAAqB,CAAG,GAAA;AAC7B,YAAA,SAAS,EAAE,QAAQ;SACpB,EACD,EAAA,EAAA;KAAA;CACH,EAAC,EAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export type { LinkProps } from '@material-ui/core';
2
+ export { Link } from './Link';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { NumberFieldProps } from './NumberFieldProps';
3
+ export declare const NumberField: (props: NumberFieldProps) => JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import { TextField } from '@material-ui/core';
3
+ import { MinusCircle, PlusCircle } from '@popmenu/web-icons';
4
+ import React from 'react';
5
+ import { Icon } from '../Icon/Icon.js';
6
+ import { IconButton } from '../IconButton/IconButton.js';
7
+ import { useNumberFieldStyles, useNumberInputStyles } from './NumberFieldStyles.js';
8
+
9
+ var NumberField = function (props) {
10
+ var onIncrement = props.onIncrement, onDecrement = props.onDecrement, _a = props.endAdornmentButtonProps, endAdornmentButtonProps = _a === void 0 ? {} : _a, _b = props.startAdornmentButtonProps, startAdornmentButtonProps = _b === void 0 ? {} : _b, _c = props.InputProps, InputProps = _c === void 0 ? {} : _c, classes = props.classes, restProps = __rest(props, ["onIncrement", "onDecrement", "endAdornmentButtonProps", "startAdornmentButtonProps", "InputProps", "classes"]);
11
+ var _d = InputProps, inputClassesOverride = _d.classes, restInputProps = __rest(_d, ["classes"]);
12
+ var fieldClasses = useNumberFieldStyles(props);
13
+ var inputClasses = useNumberInputStyles(props);
14
+ return (React.createElement(TextField, __assign({ classes: __assign(__assign({}, fieldClasses), classes), variant: "filled", type: "number", defaultValue: 0, InputProps: __assign({ classes: __assign(__assign({}, inputClasses), inputClassesOverride), disableUnderline: true, endAdornment: (React.createElement(IconButton, __assign({ style: { fontSize: 20 }, onClick: onIncrement }, endAdornmentButtonProps),
15
+ React.createElement(Icon, { icon: PlusCircle }))), startAdornment: (React.createElement(IconButton, __assign({ style: { fontSize: 20 }, onClick: onDecrement }, startAdornmentButtonProps),
16
+ React.createElement(Icon, { icon: MinusCircle }))) }, restInputProps) }, restProps)));
17
+ };
18
+
19
+ export { NumberField };
20
+ //# sourceMappingURL=NumberField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberField.js","sources":["../../../../src/components/NumberField/NumberField.tsx"],"sourcesContent":["import { InputProps as MuiInputProps, TextField } from '@material-ui/core'\nimport { MinusCircle, PlusCircle } from '@popmenu/web-icons'\nimport React from 'react'\n\nimport { Icon } from '../Icon'\nimport { IconButton } from '../IconButton'\nimport { NumberFieldProps } from './NumberFieldProps'\nimport { useNumberFieldStyles, useNumberInputStyles } from './NumberFieldStyles'\n\nexport const NumberField = (props: NumberFieldProps): JSX.Element => {\n const {\n onIncrement,\n onDecrement,\n endAdornmentButtonProps = {},\n startAdornmentButtonProps = {},\n InputProps = {},\n classes,\n ...restProps\n } = props\n const { classes: inputClassesOverride, ...restInputProps } = InputProps as MuiInputProps\n const fieldClasses = useNumberFieldStyles(props)\n const inputClasses = useNumberInputStyles(props)\n\n return (\n <TextField\n classes={{ ...fieldClasses, ...classes }}\n variant=\"filled\"\n type=\"number\"\n defaultValue={0}\n InputProps={{\n classes: { ...inputClasses, ...inputClassesOverride },\n disableUnderline: true,\n endAdornment: (\n <IconButton style={{ fontSize: 20 }} onClick={onIncrement} {...endAdornmentButtonProps}>\n <Icon icon={PlusCircle} />\n </IconButton>\n ),\n startAdornment: (\n <IconButton style={{ fontSize: 20 }} onClick={onDecrement} {...startAdornmentButtonProps}>\n <Icon icon={MinusCircle} />\n </IconButton>\n ),\n ...restInputProps,\n }}\n {...restProps}\n />\n )\n}\n"],"names":[],"mappings":";;;;;;;;AASO,IAAM,WAAW,GAAG,UAAC,KAAuB,EAAA;IAE/C,IAAA,WAAW,GAOT,KAAK,CAAA,WAPI,EACX,WAAW,GAMT,KAAK,CAAA,WANI,EACX,EAAA,GAKE,KAAK,CALqB,uBAAA,EAA5B,uBAAuB,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,KAAA,EAC5B,EAAA,GAIE,KAAK,CAAA,yBAJuB,EAA9B,yBAAyB,mBAAG,EAAE,GAAA,EAAA,EAC9B,EAGE,GAAA,KAAK,WAHQ,EAAf,UAAU,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EACf,OAAO,GAEL,KAAK,QAFA,EACJ,SAAS,UACV,KAAK,EARH,CAQL,aAAA,EAAA,aAAA,EAAA,yBAAA,EAAA,2BAAA,EAAA,YAAA,EAAA,SAAA,CAAA,CADa;IAEd,IAAM,EAAA,GAAuD,UAA2B,EAAvE,oBAAoB,GAAA,EAAA,CAAA,OAAA,EAAK,cAAc,GAAA,MAAA,CAAA,EAAA,EAAlD,CAAoD,SAAA,CAAA,CAA8B;AACxF,IAAA,IAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAChD,IAAA,IAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC;IAEhD,QACE,KAAC,CAAA,aAAA,CAAA,SAAS,EACR,QAAA,CAAA,EAAA,OAAO,wBAAO,YAAY,CAAA,EAAK,OAAO,CAAA,EACtC,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,QAAQ,EACb,YAAY,EAAE,CAAC,EACf,UAAU,EAAA,QAAA,CAAA,EACR,OAAO,EAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EAAO,YAAY,CAAK,EAAA,oBAAoB,CACnD,EAAA,gBAAgB,EAAE,IAAI,EACtB,YAAY,GACV,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,QAAA,CAAA,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAA,EAAM,uBAAuB,CAAA;gBACpF,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,UAAU,EAAI,CAAA,CACf,CACd,EACD,cAAc,GACZ,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,QAAA,CAAA,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAA,EAAM,yBAAyB,CAAA;AACtF,gBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,WAAW,EAAI,CAAA,CAChB,CACd,EAAA,EACE,cAAc,CAAA,EAAA,EAEf,SAAS,CAAA,CACb;AAEN;;;;"}
@@ -0,0 +1,12 @@
1
+ import { FilledTextFieldProps } from '@material-ui/core';
2
+ import { IconButtonProps } from '../IconButton';
3
+ export interface NumberFieldProps extends Omit<FilledTextFieldProps, 'variant'> {
4
+ /** Callback invoked when the plus sign is clicked. */
5
+ onIncrement: () => void;
6
+ /** Callback invoked when the minus sign is clicked. */
7
+ onDecrement: () => void;
8
+ /** Props for the endAdornment IconButton element */
9
+ endAdornmentButtonProps?: IconButtonProps;
10
+ /** Props for the startAdornment IconButton element */
11
+ startAdornmentButtonProps?: IconButtonProps;
12
+ }
@@ -0,0 +1,2 @@
1
+ export declare const useNumberFieldStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
2
+ export declare const useNumberInputStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"input" | "root" | "adornedEnd" | "adornedStart">;
@@ -0,0 +1,32 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+
3
+ var useNumberFieldStyles = makeStyles(function () { return ({
4
+ root: {
5
+ height: 56,
6
+ },
7
+ }); });
8
+ var useNumberInputStyles = makeStyles(function (theme) { return ({
9
+ root: {
10
+ height: '100%',
11
+ width: 'min-content',
12
+ borderRadius: theme.spacing(1),
13
+ },
14
+ input: {
15
+ '&::-webkit-clear-button, &::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
16
+ display: 'none',
17
+ },
18
+ '-moz-appearance': 'textfield',
19
+ minWidth: 40,
20
+ padding: 0,
21
+ textAlign: 'center',
22
+ },
23
+ adornedStart: {
24
+ padding: 0,
25
+ },
26
+ adornedEnd: {
27
+ padding: 0,
28
+ },
29
+ }); });
30
+
31
+ export { useNumberFieldStyles, useNumberInputStyles };
32
+ //# sourceMappingURL=NumberFieldStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberFieldStyles.js","sources":["../../../../src/components/NumberField/NumberFieldStyles.ts"],"sourcesContent":["import { makeStyles } from '@material-ui/core'\n\nexport const useNumberFieldStyles = makeStyles(() => ({\n root: {\n height: 56,\n },\n}))\n\nexport const useNumberInputStyles = makeStyles((theme) => ({\n root: {\n height: '100%',\n width: 'min-content',\n borderRadius: theme.spacing(1),\n },\n input: {\n '&::-webkit-clear-button, &::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\n display: 'none',\n },\n '-moz-appearance': 'textfield',\n minWidth: 40,\n padding: 0,\n textAlign: 'center',\n },\n adornedStart: {\n padding: 0,\n },\n adornedEnd: {\n padding: 0,\n },\n}))\n"],"names":[],"mappings":";;IAEa,oBAAoB,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AACpD,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,EAAE;AACX,KAAA;CACF,EAAC,EAAA;AAEW,IAAA,oBAAoB,GAAG,UAAU,CAAC,UAAC,KAAK,EAAK,EAAA,QAAC;AACzD,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/B,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,qFAAqF,EAAE;AACrF,YAAA,OAAO,EAAE,MAAM;AAChB,SAAA;AACD,QAAA,iBAAiB,EAAE,WAAW;AAC9B,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,OAAO,EAAE,CAAC;AACV,QAAA,SAAS,EAAE,QAAQ;AACpB,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { NumberField } from './NumberField';
2
+ export type { NumberFieldProps } from './NumberFieldProps';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { PaperProps as MuiPaperProps } from '@material-ui/core';
3
+ export interface PaperProps extends MuiPaperProps {
4
+ legacyStyles?: boolean;
5
+ }
6
+ export declare const Paper: React.ForwardRefExoticComponent<Pick<PaperProps, "color" | "translate" | "hidden" | "style" | "square" | "aria-describedby" | "aria-hidden" | "aria-label" | "className" | "variant" | "slot" | "title" | "id" | "lang" | "role" | "tabIndex" | "elevation" | "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" | "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" | "component" | "legacyStyles"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,28 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import { makeStyles, Paper as Paper$1 } from '@material-ui/core';
4
+
5
+ var useStyles = makeStyles(function (_a) {
6
+ var spacing = _a.spacing;
7
+ return ({
8
+ root: {
9
+ '&:last-child': {
10
+ marginBottom: 0,
11
+ },
12
+ marginBottom: spacing(4),
13
+ padding: spacing(4),
14
+ },
15
+ });
16
+ });
17
+ var Paper = forwardRef(function (props, ref) {
18
+ var legacyStyles = props.legacyStyles, restProps = __rest(props, ["legacyStyles"]);
19
+ var classes = useStyles(props);
20
+ return React.createElement(Paper$1, __assign({}, ref, { classes: __assign({}, (legacyStyles && classes)) }, restProps));
21
+ });
22
+ Paper.displayName = 'Paper';
23
+ Paper.defaultProps = {
24
+ legacyStyles: false,
25
+ };
26
+
27
+ export { Paper };
28
+ //# sourceMappingURL=Paper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paper.js","sources":["../../../../src/components/Paper/Paper.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { makeStyles, Paper as MuiPaper, PaperProps as MuiPaperProps } from '@material-ui/core'\n\nconst useStyles = makeStyles(({ spacing }) => ({\n root: {\n '&:last-child': {\n marginBottom: 0,\n },\n marginBottom: spacing(4),\n padding: spacing(4),\n },\n}))\n\nexport interface PaperProps extends MuiPaperProps {\n legacyStyles?: boolean\n}\n\nexport const Paper = forwardRef<HTMLDivElement, PaperProps>((props, ref) => {\n const { legacyStyles, ...restProps } = props\n const classes = useStyles(props)\n return <MuiPaper {...ref} classes={{ ...(legacyStyles && classes) }} {...restProps} />\n})\n\nPaper.displayName = 'Paper'\n\nPaper.defaultProps = {\n legacyStyles: false,\n}\n"],"names":["MuiPaper"],"mappings":";;;;AAGA,IAAM,SAAS,GAAG,UAAU,CAAC,UAAC,EAAW,EAAA;AAAT,IAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,IAAA,QAAC;AAC7C,QAAA,IAAI,EAAE;AACJ,YAAA,cAAc,EAAE;AACd,gBAAA,YAAY,EAAE,CAAC;AAChB,aAAA;AACD,YAAA,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;AACxB,YAAA,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACpB,SAAA;KACF;AAR6C,CAQ5C,CAAC;IAMU,KAAK,GAAG,UAAU,CAA6B,UAAC,KAAK,EAAE,GAAG,EAAA;IAC7D,IAAA,YAAY,GAAmB,KAAK,CAAxB,YAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAtC,CAA8B,cAAA,CAAA,CAAF;AAClC,IAAA,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;AAChC,IAAA,OAAO,KAAC,CAAA,aAAA,CAAAA,OAAQ,EAAK,QAAA,CAAA,EAAA,EAAA,GAAG,IAAE,OAAO,EAAA,QAAA,CAAA,EAAA,GAAQ,YAAY,IAAI,OAAO,EAAS,EAAA,EAAA,SAAS,EAAI;AACxF,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO;AAE3B,KAAK,CAAC,YAAY,GAAG;AACnB,IAAA,YAAY,EAAE,KAAK;CACpB;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Paper } from './Paper';
2
+ export type { PaperProps } from './Paper';
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const PaperContent: FC<Record<string, never>>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Box } from '@material-ui/core';
3
+
4
+ var PaperContent = function (props) {
5
+ var children = props.children;
6
+ return React.createElement(Box, { padding: 4 }, children);
7
+ };
8
+
9
+ export { PaperContent };
10
+ //# sourceMappingURL=PaperContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaperContent.js","sources":["../../../../src/components/PaperContent/PaperContent.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box } from '@material-ui/core'\n\nexport const PaperContent: FC<Record<string, never>> = (props) => {\n const { children } = props\n return <Box padding={4}>{children}</Box>\n}\n"],"names":[],"mappings":";;;AAIO,IAAM,YAAY,GAA8B,UAAC,KAAK,EAAA;AACnD,IAAA,IAAA,QAAQ,GAAK,KAAK,CAAA,QAAV;IAChB,OAAO,KAAA,CAAA,aAAA,CAAC,GAAG,EAAC,EAAA,OAAO,EAAE,CAAC,EAAA,EAAG,QAAQ,CAAO;AAC1C;;;;"}
@@ -0,0 +1 @@
1
+ export { PaperContent } from './PaperContent';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RadioProps } from './RadioProps';
3
+ export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "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" | "checkedIcon" | "edge" | "inputProps" | "inputRef" | "LabelProps"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,13 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import { Radio as Radio$1, FormControlLabel } from '@material-ui/core';
4
+
5
+ var Radio = forwardRef(function (props, ref) {
6
+ var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
7
+ var control = React.createElement(Radio$1, __assign({ disabled: label ? undefined : disabled }, muiProps));
8
+ return label ? (React.createElement(FormControlLabel, __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
9
+ });
10
+ Radio.displayName = 'Radio';
11
+
12
+ export { Radio };
13
+ //# sourceMappingURL=Radio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport { FormControlLabel, Radio as MuiRadio } from '@material-ui/core'\nimport { RadioProps } from './RadioProps'\n\nexport const Radio = forwardRef<HTMLInputElement, RadioProps>((props, ref) => {\n const { label, disabled, LabelProps, ...muiProps } = props\n const control = <MuiRadio 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\nRadio.displayName = 'Radio'\n"],"names":["MuiRadio"],"mappings":";;;;IAKa,KAAK,GAAG,UAAU,CAA+B,UAAC,KAAK,EAAE,GAAG,EAAA;IAC/D,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,CAACA,OAAQ,EAAC,QAAA,CAAA,EAAA,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,QAAQ,EAAM,EAAA,QAAQ,EAAI;AAClF,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,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
@@ -0,0 +1,7 @@
1
+ import { FormControlLabelProps, RadioProps as MuiRadioProps } from '@material-ui/core';
2
+ export interface RadioProps extends MuiRadioProps {
3
+ /** Adds a text label to the Radio. If provided, the Radio will be wrapped by a FormControlLabel component. */
4
+ label: string;
5
+ /** Props applied to the FormControlLabel component wrapping a Radio if a label is given. */
6
+ LabelProps: Omit<FormControlLabelProps, 'control'>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export { Radio } from './Radio';
2
+ export type { RadioProps } from './RadioProps';
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { SplitInputProps } from './SplitInputProps';
3
+ export declare const SplitInput: FC<SplitInputProps>;
@@ -0,0 +1,21 @@
1
+ import { __assign } from 'tslib';
2
+ import React from 'react';
3
+ import { Box, TextField } from '@material-ui/core';
4
+ import { Button } from '../Button/Button.js';
5
+ import { useSplitInputStyles } from './SplitInputStyles.js';
6
+
7
+ var SplitInput = function (props) {
8
+ var buttonLabel = props.buttonLabel, TextFieldProps = props.TextFieldProps, ButtonProps = props.ButtonProps, color = props.color, onChange = props.onChange, onClick = props.onClick;
9
+ var classes = useSplitInputStyles(props);
10
+ return (React.createElement(Box, { display: "flex" },
11
+ React.createElement(TextField, __assign({ classes: { root: classes.textfield }, InputProps: { classes: { root: classes.input, focused: classes.focused } }, color: color, variant: "outlined", onChange: onChange }, TextFieldProps)),
12
+ React.createElement(Button, __assign({ classes: { root: classes.button }, disableElevation: true, color: color, variant: "contained", onClick: onClick }, ButtonProps), buttonLabel)));
13
+ };
14
+ SplitInput.displayName = 'SplitInput';
15
+ SplitInput.defaultProps = {
16
+ backgroundTransparency: true,
17
+ color: 'primary',
18
+ };
19
+
20
+ export { SplitInput };
21
+ //# sourceMappingURL=SplitInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitInput.js","sources":["../../../../src/components/SplitInput/SplitInput.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box, TextField } from '@material-ui/core'\nimport { Button } from '../Button'\nimport { SplitInputProps } from './SplitInputProps'\nimport { useSplitInputStyles } from './SplitInputStyles'\n\nexport const SplitInput: FC<SplitInputProps> = (props) => {\n const { buttonLabel, TextFieldProps, ButtonProps, color, onChange, onClick } = props\n const classes = useSplitInputStyles(props)\n return (\n <Box display=\"flex\">\n <TextField\n classes={{ root: classes.textfield }}\n InputProps={{ classes: { root: classes.input, focused: classes.focused } }}\n color={color}\n variant=\"outlined\"\n onChange={onChange}\n {...TextFieldProps}\n />\n <Button\n classes={{ root: classes.button }}\n disableElevation\n color={color}\n variant=\"contained\"\n onClick={onClick}\n {...ButtonProps}\n >\n {buttonLabel}\n </Button>\n </Box>\n )\n}\n\nSplitInput.displayName = 'SplitInput'\n\nSplitInput.defaultProps = {\n backgroundTransparency: true,\n color: 'primary',\n}\n"],"names":[],"mappings":";;;;;;AAOO,IAAM,UAAU,GAAwB,UAAC,KAAK,EAAA;AAC3C,IAAA,IAAA,WAAW,GAA4D,KAAK,CAAA,WAAjE,EAAE,cAAc,GAA4C,KAAK,CAAjD,cAAA,EAAE,WAAW,GAA+B,KAAK,CAAA,WAApC,EAAE,KAAK,GAAwB,KAAK,CAA7B,KAAA,EAAE,QAAQ,GAAc,KAAK,CAAA,QAAnB,EAAE,OAAO,GAAK,KAAK,QAAV;AAC1E,IAAA,IAAM,OAAO,GAAG,mBAAmB,CAAC,KAAK,CAAC;AAC1C,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,OAAO,EAAC,MAAM,EAAA;QACjB,KAAC,CAAA,aAAA,CAAA,SAAS,aACR,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,EACpC,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,EAC1E,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,QAAQ,EACd,EAAA,cAAc,CAClB,CAAA;AACF,QAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,QAAA,CAAA,EACL,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,EACjC,gBAAgB,QAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,OAAO,EACZ,EAAA,WAAW,CAEd,EAAA,WAAW,CACL,CACL;AAEV;AAEA,UAAU,CAAC,WAAW,GAAG,YAAY;AAErC,UAAU,CAAC,YAAY,GAAG;AACxB,IAAA,sBAAsB,EAAE,IAAI;AAC5B,IAAA,KAAK,EAAE,SAAS;CACjB;;;;"}
@@ -0,0 +1,20 @@
1
+ import { TextFieldProps as MuiTextFieldProps } from '@material-ui/core';
2
+ import { ButtonProps } from '../Button';
3
+ export interface SplitInputProps {
4
+ /** Props applied to the composed TextField component */
5
+ TextFieldProps?: MuiTextFieldProps;
6
+ /** Props applied to the composed Button component */
7
+ ButtonProps?: ButtonProps;
8
+ /** Label for the button element */
9
+ buttonLabel: string;
10
+ /** Sets the color for both TextField and Button */
11
+ color?: 'primary' | 'secondary';
12
+ /** Sets the text color for the TextField */
13
+ inputTextColor?: string;
14
+ /** Applies a partially transparent background to the TextField */
15
+ backgroundTransparency?: boolean;
16
+ /** Event callback for the TextField change event */
17
+ onChange?: MuiTextFieldProps['onChange'];
18
+ /** Event callback for the Button click event */
19
+ onClick?: ButtonProps['onClick'];
20
+ }
@@ -0,0 +1,2 @@
1
+ import { SplitInputProps } from './SplitInputProps';
2
+ export declare const useSplitInputStyles: (props: SplitInputProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,29 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+
3
+ var useSplitInputStyles = makeStyles(function () { return ({
4
+ textfield: {
5
+ background: function (props) { return (props.backgroundTransparency ? '#FFFFFF44' : 'none'); },
6
+ borderTopLeftRadius: 4,
7
+ borderBottomLeftRadius: 4,
8
+ '& fieldset': {
9
+ borderRight: 'none',
10
+ borderTopRightRadius: 0,
11
+ borderBottomRightRadius: 0,
12
+ },
13
+ },
14
+ button: {
15
+ borderTopLeftRadius: 0,
16
+ borderBottomLeftRadius: 0,
17
+ alignSelf: 'stretch',
18
+ },
19
+ input: {
20
+ color: function (props) { return props.inputTextColor || 'inherit'; },
21
+ '&$focused fieldset': {
22
+ top: -4,
23
+ },
24
+ },
25
+ focused: {},
26
+ }); });
27
+
28
+ export { useSplitInputStyles };
29
+ //# sourceMappingURL=SplitInputStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitInputStyles.js","sources":["../../../../src/components/SplitInput/SplitInputStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { SplitInputProps } from './SplitInputProps'\n\nexport const useSplitInputStyles = makeStyles<Theme, SplitInputProps>(() => ({\n textfield: {\n background: (props) => (props.backgroundTransparency ? '#FFFFFF44' : 'none'),\n borderTopLeftRadius: 4,\n borderBottomLeftRadius: 4,\n '& fieldset': {\n borderRight: 'none',\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0,\n },\n },\n button: {\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n alignSelf: 'stretch',\n },\n input: {\n color: (props) => props.inputTextColor || 'inherit',\n '&$focused fieldset': {\n top: -4,\n },\n },\n focused: {},\n}))\n"],"names":[],"mappings":";;IAIa,mBAAmB,GAAG,UAAU,CAAyB,YAAA,EAAM,QAAC;AAC3E,IAAA,SAAS,EAAE;AACT,QAAA,UAAU,EAAE,UAAC,KAAK,IAAK,QAAC,KAAK,CAAC,sBAAsB,GAAG,WAAW,GAAG,MAAM,IAAC;AAC5E,QAAA,mBAAmB,EAAE,CAAC;AACtB,QAAA,sBAAsB,EAAE,CAAC;AACzB,QAAA,YAAY,EAAE;AACZ,YAAA,WAAW,EAAE,MAAM;AACnB,YAAA,oBAAoB,EAAE,CAAC;AACvB,YAAA,uBAAuB,EAAE,CAAC;AAC3B,SAAA;AACF,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,mBAAmB,EAAE,CAAC;AACtB,QAAA,sBAAsB,EAAE,CAAC;AACzB,QAAA,SAAS,EAAE,SAAS;AACrB,KAAA;AACD,IAAA,KAAK,EAAE;QACL,KAAK,EAAE,UAAC,KAAK,EAAK,EAAA,OAAA,KAAK,CAAC,cAAc,IAAI,SAAS,CAAA,EAAA;AACnD,QAAA,oBAAoB,EAAE;YACpB,GAAG,EAAE,EAAE;AACR,SAAA;AACF,KAAA;AACD,IAAA,OAAO,EAAE,EAAE;CACZ,EAAC,EAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { SplitInput } from './SplitInput';
2
+ export type { SplitInputProps } from './SplitInputProps';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SwitchProps } from './SwitchProps';
3
+ export declare const Switch: React.ForwardRefExoticComponent<Pick<SwitchProps, "color" | "translate" | "hidden" | "size" | "style" | "icon" | "disabled" | "aria-describedby" | "aria-hidden" | "aria-label" | "className" | "form" | "label" | "slot" | "title" | "id" | "lang" | "name" | "type" | "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" | "checkedIcon" | "edge" | "inputProps" | "inputRef" | "LabelProps"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,15 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React, { forwardRef } from 'react';
3
+ import { Switch as Switch$1, FormControlLabel } from '@material-ui/core';
4
+ import { useSwitchStyles } from './switch.styles.js';
5
+
6
+ var Switch = forwardRef(function (props, ref) {
7
+ var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
8
+ var classes = useSwitchStyles(props);
9
+ var control = React.createElement(Switch$1, __assign({ classes: classes, disabled: label ? undefined : disabled }, muiProps));
10
+ return label ? (React.createElement(FormControlLabel, __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
11
+ });
12
+ Switch.displayName = 'Switch';
13
+
14
+ export { Switch };
15
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sources":["../../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport { FormControlLabel, Switch as MuiSwitch } from '@material-ui/core'\nimport { SwitchProps } from './SwitchProps'\nimport { useSwitchStyles } from './switch.styles'\n\nexport const Switch = forwardRef<HTMLInputElement, SwitchProps>((props, ref) => {\n const { label, disabled, LabelProps, ...muiProps } = props\n const classes = useSwitchStyles(props)\n const control = <MuiSwitch classes={classes} 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\nSwitch.displayName = 'Switch'\n"],"names":["MuiSwitch"],"mappings":";;;;;IAMa,MAAM,GAAG,UAAU,CAAgC,UAAC,KAAK,EAAE,GAAG,EAAA;IACjE,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,eAAe,CAAC,KAAK,CAAC;IACtC,IAAM,OAAO,GAAG,KAAC,CAAA,aAAA,CAAAA,QAAS,aAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,QAAQ,EAAA,EAAM,QAAQ,CAAA,CAAI;AACrG,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,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -0,0 +1,7 @@
1
+ import { FormControlLabelProps, SwitchProps as MuiSwitchProps } from '@material-ui/core';
2
+ export interface SwitchProps extends MuiSwitchProps {
3
+ /** Adds a text label to the Switch. If provided, the Switch will be wrapped by a FormControlLabel component. */
4
+ label: string;
5
+ /** Props applied to the FormControlLabel component wrapping a Switch if a label is given. */
6
+ LabelProps: Omit<FormControlLabelProps, 'control'>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export { Switch } from './Switch';
2
+ export type { SwitchProps } from './SwitchProps';
@@ -0,0 +1,2 @@
1
+ import { SwitchProps } from './SwitchProps';
2
+ export declare const useSwitchStyles: (props: SwitchProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,17 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+
3
+ var useSwitchStyles = makeStyles(function (theme) { return ({
4
+ checked: {
5
+ '& $thumb': {
6
+ background: theme.palette.success.main,
7
+ },
8
+ '&& + $track': {
9
+ backgroundColor: theme.palette.success.main,
10
+ },
11
+ },
12
+ thumb: {},
13
+ track: {},
14
+ }); });
15
+
16
+ export { useSwitchStyles };
17
+ //# sourceMappingURL=switch.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.styles.js","sources":["../../../../src/components/Switch/switch.styles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { SwitchProps } from './SwitchProps'\n\nexport const useSwitchStyles = makeStyles<Theme, SwitchProps>((theme) => ({\n checked: {\n '& $thumb': {\n background: theme.palette.success.main,\n },\n '&& + $track': {\n backgroundColor: theme.palette.success.main,\n },\n },\n thumb: {},\n track: {},\n}))\n"],"names":[],"mappings":";;AAGa,IAAA,eAAe,GAAG,UAAU,CAAqB,UAAC,KAAK,EAAK,EAAA,QAAC;AACxE,IAAA,OAAO,EAAE;AACP,QAAA,UAAU,EAAE;AACV,YAAA,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;AACvC,SAAA;AACD,QAAA,aAAa,EAAE;AACb,YAAA,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;AAC5C,SAAA;AACF,KAAA;AACD,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,KAAK,EAAE,EAAE;CACV,EAAC,EAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { TabPanelProps } from './TabPanelProps';
3
+ export declare const TabPanel: (props: PropsWithChildren<TabPanelProps>) => JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Box } from '@material-ui/core';
3
+
4
+ var TabPanel = function (props) {
5
+ var children = props.children, show = props.show;
6
+ return show ? React.createElement(Box, null, children) : null;
7
+ };
8
+
9
+ export { TabPanel };
10
+ //# sourceMappingURL=TabPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabPanel.js","sources":["../../../../src/components/TabPanel/TabPanel.tsx"],"sourcesContent":["import React, { PropsWithChildren } from 'react'\n\nimport { Box } from '@material-ui/core'\nimport { TabPanelProps } from './TabPanelProps'\n\nexport const TabPanel = (props: PropsWithChildren<TabPanelProps>) => {\n const { children, show } = props\n return show ? <Box>{children}</Box> : null\n}\n"],"names":[],"mappings":";;;AAKO,IAAM,QAAQ,GAAG,UAAC,KAAuC,EAAA;IACtD,IAAA,QAAQ,GAAW,KAAK,CAAA,QAAhB,EAAE,IAAI,GAAK,KAAK,CAAA,IAAV;AACtB,IAAA,OAAO,IAAI,GAAG,KAAC,CAAA,aAAA,CAAA,GAAG,EAAE,IAAA,EAAA,QAAQ,CAAO,GAAG,IAAI;AAC5C;;;;"}
@@ -0,0 +1,3 @@
1
+ export interface TabPanelProps {
2
+ show: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ export { TabPanel } from './TabPanel';
2
+ export type { TabPanelProps } from './TabPanelProps';