@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,7 @@
1
+ import { FormControlLabelProps, CheckboxProps as MuiCheckboxProps } from '@material-ui/core';
2
+ export interface CheckboxProps extends MuiCheckboxProps {
3
+ /** Adds a text label to the Checkbox. If provided, the Checkbox will be wrapped by a FormControlLabel component. */
4
+ label: string;
5
+ /** Props applied to the FormControlLabel component wrapping a checkbox if a label is given. */
6
+ LabelProps: Omit<FormControlLabelProps, 'control'>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export { Checkbox } from './Checkbox';
2
+ export type { CheckboxProps } from './CheckboxProps';
@@ -0,0 +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
+ };
@@ -0,0 +1,23 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import { Chip as Chip$1 } from '@material-ui/core';
3
+ import { Warning, CheckCircle, Info, Error, XCircle } from '@popmenu/web-icons';
4
+ import React from 'react';
5
+ import { useChipStyles } from './ChipStyles.js';
6
+
7
+ var IconDictionary = {
8
+ error: Error,
9
+ info: Info,
10
+ success: CheckCircle,
11
+ warning: Warning,
12
+ };
13
+ var Chip = function (props) {
14
+ var severity = props.severity, restProps = __rest(props, ["severity"]);
15
+ var classes = useChipStyles(props);
16
+ var icon = severity ? React.createElement(IconDictionary[severity]) : undefined;
17
+ var deleteIcon = React.createElement(XCircle);
18
+ return React.createElement(Chip$1, __assign({ classes: classes, icon: icon, deleteIcon: deleteIcon }, restProps));
19
+ };
20
+ Chip.displayName = 'Chip';
21
+
22
+ export { Chip };
23
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.js","sources":["../../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import { Chip as MuiChip } from '@material-ui/core'\nimport { CheckCircle, Error as ErrorIcon, Info, Warning, XCircle } from '@popmenu/web-icons'\nimport React from 'react'\nimport { ChipProps, DefaultChipComponent } from './ChipProps'\nimport { useChipStyles } from './ChipStyles'\n\nconst IconDictionary = {\n error: ErrorIcon,\n info: Info,\n success: CheckCircle,\n warning: Warning,\n}\n\nexport const Chip = <C extends React.ElementType = DefaultChipComponent>(props: ChipProps<C>) => {\n const { severity, ...restProps } = props\n const classes = useChipStyles(props)\n const icon = severity ? React.createElement(IconDictionary[severity]) : undefined\n const deleteIcon = React.createElement(XCircle)\n return <MuiChip classes={classes} icon={icon} deleteIcon={deleteIcon} {...restProps} />\n}\n\nChip.displayName = 'Chip'\n"],"names":["ErrorIcon","MuiChip"],"mappings":";;;;;;AAMA,IAAM,cAAc,GAAG;AACrB,IAAA,KAAK,EAAEA,KAAS;AAChB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,WAAW;AACpB,IAAA,OAAO,EAAE,OAAO;CACjB;AAEM,IAAM,IAAI,GAAG,UAAqD,KAAmB,EAAA;IAClF,IAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAA,EAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAAlC,CAA0B,UAAA,CAAA,CAAF;AAC9B,IAAA,IAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC;AACpC,IAAA,IAAM,IAAI,GAAG,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS;IACjF,IAAM,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;AAC/C,IAAA,OAAO,oBAACC,MAAO,EAAA,QAAA,CAAA,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAM,EAAA,SAAS,EAAI;AACzF;AAEA,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
@@ -0,0 +1,8 @@
1
+ import { ChipTypeMap, ChipProps as MuiChipProps } from '@material-ui/core';
2
+ import React from 'react';
3
+ export declare type DefaultChipComponent = ChipTypeMap['defaultComponent'];
4
+ export declare type ChipProps<C extends React.ElementType = DefaultChipComponent> = MuiChipProps<C, {
5
+ component?: C;
6
+ }> & {
7
+ severity?: 'success' | 'info' | 'warning' | 'error';
8
+ };
@@ -0,0 +1,2 @@
1
+ import { ChipProps } from './ChipProps';
2
+ export declare const useChipStyles: (props: ChipProps<any>) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,83 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+
3
+ var getBackground = function (theme) { return function (props) {
4
+ var variant = props.variant, severity = props.severity;
5
+ var background = theme.palette.grey[100];
6
+ var backgrounds = {
7
+ outlined: 'none',
8
+ error: 'error.main',
9
+ warning: 'warning.main',
10
+ info: 'info.light',
11
+ success: 'success.light',
12
+ };
13
+ if (variant === 'outlined') {
14
+ background = backgrounds[variant];
15
+ }
16
+ else if (severity) {
17
+ var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
18
+ // @ts-expect-error - todo.
19
+ background = theme.palette[color][colorVariant];
20
+ }
21
+ return background;
22
+ }; };
23
+ var getColor = function (theme) { return function (props) {
24
+ var variant = props.variant, severity = props.severity;
25
+ var textColor;
26
+ if (variant === 'outlined' && severity) {
27
+ var textColors = {
28
+ error: theme.palette.error.main,
29
+ info: theme.palette.info.main,
30
+ warning: theme.palette.warning.dark,
31
+ success: theme.palette.success.dark,
32
+ };
33
+ textColor = textColors[severity];
34
+ }
35
+ else if (variant === 'outlined' && !severity) {
36
+ textColor = theme.palette.grey[700];
37
+ }
38
+ else if ((variant === 'default' || variant === undefined) && severity) {
39
+ var textColors = {
40
+ error: theme.palette.common.white,
41
+ info: theme.palette.secondary.main,
42
+ warning: theme.palette.secondary.main,
43
+ success: theme.palette.secondary.main,
44
+ };
45
+ textColor = textColors[severity];
46
+ }
47
+ return textColor;
48
+ }; };
49
+ var getBorder = function (theme) { return function (props) {
50
+ var variant = props.variant, severity = props.severity;
51
+ var borderColor;
52
+ if (variant === 'outlined' && severity) {
53
+ var borderColors = {
54
+ error: theme.palette.error.main,
55
+ info: theme.palette.info.main,
56
+ warning: theme.palette.warning.dark,
57
+ success: theme.palette.success.dark,
58
+ };
59
+ borderColor = borderColors[severity];
60
+ }
61
+ return borderColor;
62
+ }; };
63
+ // using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on
64
+ // any component-specific props
65
+ var useChipStyles = makeStyles(function (theme) { return ({
66
+ root: {
67
+ background: getBackground(theme),
68
+ color: getColor(theme),
69
+ borderColor: getBorder(theme),
70
+ borderRadius: theme.spacing(0.5),
71
+ },
72
+ icon: {
73
+ color: 'inherit',
74
+ height: theme.spacing(2),
75
+ width: theme.spacing(2),
76
+ },
77
+ deleteIcon: {
78
+ color: theme.palette.grey[500],
79
+ },
80
+ }); });
81
+
82
+ export { useChipStyles };
83
+ //# sourceMappingURL=ChipStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipStyles.js","sources":["../../../../src/components/Chip/ChipStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { ChipProps } from './ChipProps'\n\nconst getBackground = (theme: Theme) => (props: ChipProps) => {\n const { variant, severity } = props\n let background = theme.palette.grey[100]\n const backgrounds = {\n outlined: 'none',\n error: 'error.main',\n warning: 'warning.main',\n info: 'info.light',\n success: 'success.light',\n }\n if (variant === 'outlined') {\n background = backgrounds[variant]\n } else if (severity) {\n const [color, colorVariant] = backgrounds[severity].split('.')\n // @ts-expect-error - todo.\n background = theme.palette[color][colorVariant]\n }\n return background\n}\n\nconst getColor = (theme: Theme) => (props: ChipProps) => {\n const { variant, severity } = props\n let textColor\n if (variant === 'outlined' && severity) {\n const textColors = {\n error: theme.palette.error.main,\n info: theme.palette.info.main,\n warning: theme.palette.warning.dark,\n success: theme.palette.success.dark,\n }\n textColor = textColors[severity]\n } else if (variant === 'outlined' && !severity) {\n textColor = theme.palette.grey[700]\n } else if ((variant === 'default' || variant === undefined) && severity) {\n const textColors = {\n error: theme.palette.common.white,\n info: theme.palette.secondary.main,\n warning: theme.palette.secondary.main,\n success: theme.palette.secondary.main,\n }\n textColor = textColors[severity]\n }\n return textColor\n}\n\nconst getBorder = (theme: Theme) => (props: ChipProps) => {\n const { variant, severity } = props\n let borderColor\n if (variant === 'outlined' && severity) {\n const borderColors = {\n error: theme.palette.error.main,\n info: theme.palette.info.main,\n warning: theme.palette.warning.dark,\n success: theme.palette.success.dark,\n }\n borderColor = borderColors[severity]\n }\n return borderColor\n}\n\n// using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on\n// any component-specific props\nexport const useChipStyles = makeStyles<Theme, ChipProps<any>>((theme) => ({\n root: {\n background: getBackground(theme),\n color: getColor(theme),\n borderColor: getBorder(theme),\n borderRadius: theme.spacing(0.5),\n },\n icon: {\n color: 'inherit',\n height: theme.spacing(2),\n width: theme.spacing(2),\n },\n deleteIcon: {\n color: theme.palette.grey[500],\n },\n}))\n"],"names":[],"mappings":";;AAGA,IAAM,aAAa,GAAG,UAAC,KAAY,EAAK,EAAA,OAAA,UAAC,KAAgB,EAAA;IAC/C,IAAA,OAAO,GAAe,KAAK,CAAA,OAApB,EAAE,QAAQ,GAAK,KAAK,CAAA,QAAV;IACzB,IAAI,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACxC,IAAA,IAAM,WAAW,GAAG;AAClB,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,KAAK,EAAE,YAAY;AACnB,QAAA,OAAO,EAAE,cAAc;AACvB,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,OAAO,EAAE,eAAe;KACzB;IACD,IAAI,OAAO,KAAK,UAAU,EAAE;AAC1B,QAAA,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC;AAClC;AAAM,SAAA,IAAI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E;AACJ,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACxB,QAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACxB,KAAA;AACD,IAAA,UAAU,EAAE;QACV,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/B,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Chip } from './Chip';
2
+ export type { ChipProps } from './ChipProps';
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CollapsibleTextProps } from './CollapsibleTextProps';
3
+ export declare const CollapsibleText: FC<CollapsibleTextProps>;
@@ -0,0 +1,40 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import { useTheme, Box, Collapse } from '@material-ui/core';
3
+ import React, { useState, useRef, useEffect } from 'react';
4
+ import { Typography } from '../Typography/Typography.js';
5
+ import { useCollapsibleTextStyles } from './CollapsibleTextStyles.js';
6
+
7
+ var CollapsibleText = function (props) {
8
+ var text = props.text, open = props.open, _a = props.previewLines, previewLines = _a === void 0 ? 2 : _a, _b = props.typographyVariant, typographyVariant = _b === void 0 ? 'body1' : _b; props.collapseState; var restProps = __rest(props, ["text", "open", "previewLines", "typographyVariant", "collapseState"]);
9
+ var collapseState = useState(false);
10
+ var typographyRef = useRef(null);
11
+ var classes = useCollapsibleTextStyles(__assign(__assign({}, props), { previewLines: previewLines, typographyVariant: typographyVariant }));
12
+ var theme = useTheme();
13
+ var _c = props.collapseState ? props.collapseState : collapseState, collapsible = _c[0], setCollapsible = _c[1];
14
+ var typographyEntryLineHeightRem = parseFloat(theme.typography[typographyVariant].lineHeight);
15
+ var collapsedSizeRem = previewLines * typographyEntryLineHeightRem;
16
+ var documentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
17
+ var collapsedSizePx = collapsedSizeRem * documentFontSize;
18
+ useEffect(function () {
19
+ var typographyNode = typographyRef.current;
20
+ var observer = new ResizeObserver(function (entries) {
21
+ var typographyEntry = entries.find(function (entry) { return entry.target === typographyNode; });
22
+ if (typographyEntry) {
23
+ var typographyEntryHeight = typographyEntry.contentRect.height;
24
+ var isCollapsible = typographyEntryHeight > collapsedSizePx;
25
+ setCollapsible(isCollapsible);
26
+ }
27
+ });
28
+ observer.observe(typographyNode);
29
+ return function () {
30
+ observer.unobserve(typographyNode);
31
+ };
32
+ }, []);
33
+ return (React.createElement(Box, __assign({ position: "relative", overflow: "hidden" }, restProps),
34
+ React.createElement(Collapse, { in: open, collapsedSize: collapsedSizePx + 'px' },
35
+ React.createElement(Typography, { TypographyRef: typographyRef, variant: typographyVariant }, text)),
36
+ collapsible && !open && React.createElement(Box, { className: classes.overlay })));
37
+ };
38
+
39
+ export { CollapsibleText };
40
+ //# sourceMappingURL=CollapsibleText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsibleText.js","sources":["../../../../src/components/CollapsibleText/CollapsibleText.tsx"],"sourcesContent":["import { Box, Collapse, useTheme } from '@material-ui/core'\nimport React, { FC, useEffect, useRef, useState } from 'react'\nimport { Typography } from '../Typography'\nimport { CollapsibleTextProps } from './CollapsibleTextProps'\nimport { useCollapsibleTextStyles } from './CollapsibleTextStyles'\n\nexport const CollapsibleText: FC<CollapsibleTextProps> = (props) => {\n const { text, open, previewLines = 2, typographyVariant = 'body1', collapseState: _exclude, ...restProps } = props\n const collapseState = useState<boolean | undefined>(false)\n const typographyRef = useRef<HTMLParagraphElement | HTMLHeadingElement | HTMLSpanElement>(null)\n const classes = useCollapsibleTextStyles({ ...props, previewLines, typographyVariant })\n const theme = useTheme()\n const [collapsible, setCollapsible] = props.collapseState ? props.collapseState : collapseState\n const typographyEntryLineHeightRem = parseFloat(theme.typography[typographyVariant].lineHeight as string)\n const collapsedSizeRem = previewLines * typographyEntryLineHeightRem\n const documentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize)\n const collapsedSizePx = collapsedSizeRem * documentFontSize\n\n useEffect(() => {\n const typographyNode = typographyRef.current as Element\n const observer = new ResizeObserver((entries) => {\n const typographyEntry = entries.find((entry) => entry.target === typographyNode)\n if (typographyEntry) {\n const typographyEntryHeight = typographyEntry.contentRect.height\n const isCollapsible = typographyEntryHeight > collapsedSizePx\n setCollapsible(isCollapsible)\n }\n })\n observer.observe(typographyNode)\n return () => {\n observer.unobserve(typographyNode)\n }\n }, [])\n\n return (\n <Box position=\"relative\" overflow=\"hidden\" {...restProps}>\n <Collapse in={open} collapsedSize={collapsedSizePx + 'px'}>\n <Typography TypographyRef={typographyRef} variant={typographyVariant}>\n {text}\n </Typography>\n </Collapse>\n {collapsible && !open && <Box className={classes.overlay} />}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;;;AAMO,IAAM,eAAe,GAA6B,UAAC,KAAK,EAAA;AACrD,IAAA,IAAA,IAAI,GAAiG,KAAK,CAAtG,IAAA,CAAA,CAAE,IAAI,GAA2F,KAAK,CAAhG,IAAA,CAAA,CAAE,KAAyF,KAAK,CAAA,YAA9E,EAAhB,YAAY,GAAA,EAAA,KAAA,MAAA,GAAG,CAAC,GAAA,EAAA,CAAA,CAAE,EAAuE,GAAA,KAAK,kBAAjD,CAA3B,CAAA,iBAAiB,mBAAG,OAAO,GAAA,EAAA,EAA4C,KAAK,CAAA,aAAxB,MAAK,SAAS,GAAA,MAAA,CAAK,KAAK,EAA5G,CAAA,MAAA,EAAA,MAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,eAAA,CAAoG;AAC1G,IAAA,IAAM,aAAa,GAAG,QAAQ,CAAsB,KAAK,CAAC;AAC1D,IAAA,IAAM,aAAa,GAAG,MAAM,CAA8D,IAAI,CAAC;AAC/F,IAAA,IAAM,OAAO,GAAG,wBAAwB,CAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EAAM,KAAK,CAAA,EAAA,EAAE,YAAY,EAAA,YAAA,EAAE,iBAAiB,EAAA,iBAAA,EAAA,CAAA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EAAA,EAAK,SAAS,CAAA;QACtD,KAAC,CAAA,aAAA,CAAA,QAAQ,EAAC,EAAA,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,eAAe,GAAG,IAAI,EAAA;AACvD,YAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,iBAAiB,EAAA,EACjE,IAAI,CACM,CACJ;AACV,QAAA,WAAW,IAAI,CAAC,IAAI,IAAI,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,EAAI,CAAA,CACxD;AAEV;;;;"}
@@ -0,0 +1,13 @@
1
+ import { BoxProps } from '@material-ui/core';
2
+ export interface CollapsibleTextProps extends Pick<BoxProps, 'onClick'> {
3
+ /** The content of the CollapsibleText component. */
4
+ text: string;
5
+ /** Expands and collapses the component. */
6
+ open: boolean;
7
+ /** The number of lines visible in the collapsed state. */
8
+ previewLines?: number;
9
+ /** The variant of the typography. */
10
+ typographyVariant?: 'body1' | 'body2';
11
+ /** A React state tuple. */
12
+ collapseState?: [boolean, (collapsible: boolean) => void];
13
+ }
@@ -0,0 +1,5 @@
1
+ import { CollapsibleTextProps } from './CollapsibleTextProps';
2
+ export declare const useCollapsibleTextStyles: (props: CollapsibleTextProps & {
3
+ fadeStop?: string | number | undefined;
4
+ typographyVariant: 'body1' | 'body2';
5
+ }) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,24 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+
3
+ var getFadeStop = function (_a, typographyVariant) {
4
+ var typography = _a.typography;
5
+ // @ts-expect-error - todo.
6
+ return !isNaN(Number(typography[typographyVariant].lineHeight))
7
+ ? // @ts-expect-error - todo.
8
+ typography[typographyVariant].lineHeight + "rem"
9
+ : // @ts-expect-error - todo.
10
+ typography[typographyVariant].lineHeight;
11
+ };
12
+ var useCollapsibleTextStyles = makeStyles(function (theme) { return ({
13
+ overlay: {
14
+ position: 'absolute',
15
+ top: 0,
16
+ left: 0,
17
+ height: '100%',
18
+ width: '100%',
19
+ background: function (props) { return "linear-gradient(to top, white, #FFF0 " + getFadeStop(theme, props.typographyVariant) + ")"; },
20
+ },
21
+ }); });
22
+
23
+ export { useCollapsibleTextStyles };
24
+ //# sourceMappingURL=CollapsibleTextStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsibleTextStyles.js","sources":["../../../../src/components/CollapsibleText/CollapsibleTextStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\nimport { CollapsibleTextProps } from './CollapsibleTextProps'\n\nconst getFadeStop = ({ typography }: Theme, typographyVariant: string) => {\n // @ts-expect-error - todo.\n return !isNaN(Number(typography[typographyVariant].lineHeight))\n ? // @ts-expect-error - todo.\n `${typography[typographyVariant].lineHeight}rem`\n : // @ts-expect-error - todo.\n typography[typographyVariant].lineHeight\n}\n\nexport const useCollapsibleTextStyles = makeStyles<\n Theme,\n CollapsibleTextProps & { fadeStop?: string | number; typographyVariant: 'body1' | 'body2' }\n>((theme) => ({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n height: '100%',\n width: '100%',\n background: (props) => `linear-gradient(to top, white, #FFF0 ${getFadeStop(theme, props.typographyVariant)})`,\n },\n}))\n"],"names":[],"mappings":";;AAGA,IAAM,WAAW,GAAG,UAAC,EAAqB,EAAE,iBAAyB,EAAA;AAA9C,IAAA,IAAA,UAAU,GAAA,EAAA,CAAA,UAAA;;AAE/B,IAAA,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC;AAC5D;AACK,YAAA,UAAU,CAAC,iBAAiB,CAAC,CAAC,UAAU,GAAK;AAClD;AACE,YAAA,UAAU,CAAC,iBAAiB,CAAC,CAAC,UAAU;AAC9C,CAAC;AAEY,IAAA,wBAAwB,GAAG,UAAU,CAGhD,UAAC,KAAK,EAAK,EAAA,QAAC;AACZ,IAAA,OAAO,EAAE;AACP,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,GAAG,EAAE,CAAC;AACN,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,MAAM,EAAE,MAAM;AACd,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,UAAU,EAAE,UAAC,KAAK,EAAK,EAAA,OAAA,0CAAwC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAA,GAAG,GAAA;AAC9G,KAAA;CACF,EAAC,EAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { CollapsibleText } from './CollapsibleText';
2
+ export type { CollapsibleTextProps } from './CollapsibleTextProps';
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { DividerProps } from './DividerProps';
3
+ export declare const Divider: FC<DividerProps>;
@@ -0,0 +1,70 @@
1
+ import { __assign } from 'tslib';
2
+ import { makeStyles, Box } from '@material-ui/core';
3
+ import classNames from 'classnames';
4
+ import React from 'react';
5
+ import { Typography } from '../Typography/Typography.js';
6
+
7
+ var SemanticColors;
8
+ (function (SemanticColors) {
9
+ SemanticColors["PRIMARY_MAIN"] = "primary.main";
10
+ SemanticColors["PRIMARY_DARK"] = "primary.dark";
11
+ SemanticColors["PRIMARY_LIGHT"] = "primary.light";
12
+ SemanticColors["SECONDARY_MAIN"] = "secondary.main";
13
+ SemanticColors["SECONDARY_DARK"] = "secondary.dark";
14
+ SemanticColors["SECONDARY_LIGHT"] = "secondary.light";
15
+ })(SemanticColors || (SemanticColors = {}));
16
+ var useStyles = makeStyles(function (theme) { return ({
17
+ dividerRoot: {
18
+ gap: theme.spacing(2),
19
+ },
20
+ textRoot: {
21
+ color: function (props) {
22
+ var textColor = props.textColor;
23
+ if (Object.values(SemanticColors).includes(textColor)) {
24
+ var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
25
+ // @ts-expect-error - todo.
26
+ return theme.palette[semanticColor][shade];
27
+ }
28
+ else if (textColor) {
29
+ return textColor;
30
+ }
31
+ else {
32
+ return 'black';
33
+ }
34
+ },
35
+ textTransform: function (props) { return props.textTransform; },
36
+ },
37
+ dividerLine: {
38
+ backgroundColor: function (props) {
39
+ var dividerColor = props.dividerColor;
40
+ if (Object.values(SemanticColors).includes(dividerColor)) {
41
+ var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
42
+ // @ts-expect-error - todo.
43
+ return theme.palette[semanticColor][shade];
44
+ }
45
+ else if (dividerColor) {
46
+ return dividerColor;
47
+ }
48
+ else {
49
+ return theme.palette.grey[500];
50
+ }
51
+ },
52
+ },
53
+ }); });
54
+ var Divider = function (props) {
55
+ var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
56
+ var classes = useStyles(props);
57
+ var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
58
+ return (React.createElement(Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
59
+ React.createElement(Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
60
+ text && (React.createElement(React.Fragment, null,
61
+ React.createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
62
+ React.createElement(Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
63
+ };
64
+ Divider.displayName = 'Divider';
65
+ Divider.defaultProps = {
66
+ textTransform: 'lowercase',
67
+ };
68
+
69
+ export { Divider };
70
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.js","sources":["../../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { Box, makeStyles, Theme } from '@material-ui/core'\nimport classNames from 'classnames'\nimport React, { FC } from 'react'\nimport { Typography } from '../Typography'\nimport { DividerProps } from './DividerProps'\n\nenum SemanticColors {\n PRIMARY_MAIN = 'primary.main',\n PRIMARY_DARK = 'primary.dark',\n PRIMARY_LIGHT = 'primary.light',\n SECONDARY_MAIN = 'secondary.main',\n SECONDARY_DARK = 'secondary.dark',\n SECONDARY_LIGHT = 'secondary.light',\n}\n\nconst useStyles = makeStyles<Theme, DividerProps>((theme) => ({\n dividerRoot: {\n gap: theme.spacing(2),\n },\n textRoot: {\n color: (props) => {\n const { textColor } = props as { textColor: string }\n if (Object.values<string>(SemanticColors).includes(textColor)) {\n const [semanticColor, shade] = textColor.split('.')\n // @ts-expect-error - todo.\n return theme.palette[semanticColor][shade]\n } else if (textColor) {\n return textColor\n } else {\n return 'black'\n }\n },\n textTransform: (props) => props.textTransform,\n },\n dividerLine: {\n backgroundColor: (props) => {\n const { dividerColor } = props as { dividerColor: string }\n if (Object.values<string>(SemanticColors).includes(dividerColor)) {\n const [semanticColor, shade] = dividerColor.split('.')\n // @ts-expect-error - todo.\n return theme.palette[semanticColor][shade]\n } else if (dividerColor) {\n return dividerColor\n } else {\n return theme.palette.grey[500]\n }\n },\n },\n}))\n\nexport const Divider: FC<DividerProps> = (props) => {\n const { className, text, textTransform, TypographyProps } = props\n const classes = useStyles(props)\n const casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset'\n\n return (\n <Box className={classNames([classes.dividerRoot, className])} display=\"flex\" alignItems=\"center\">\n <Box className={classes.dividerLine} display=\"flex\" flexGrow={1} height=\"1px\" marginTop={casingOffset} />\n {text && (\n <>\n <Typography className={classes.textRoot} {...TypographyProps}>\n {text}\n </Typography>\n <Box className={classes.dividerLine} display=\"flex\" flexGrow={1} height=\"1px\" marginTop={casingOffset} />\n </>\n )}\n </Box>\n )\n}\n\nDivider.displayName = 'Divider'\n\nDivider.defaultProps = {\n textTransform: 'lowercase',\n}\n"],"names":[],"mappings":";;;;;;AAMA,IAAK,cAOJ;AAPD,CAAA,UAAK,cAAc,EAAA;AACjB,IAAA,cAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,cAAA,CAAA,cAAA,CAAA,GAAA,cAA6B;AAC7B,IAAA,cAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,cAAA,CAAA,gBAAA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C,SAAS,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAC,KAAK,EAAC,SAAS,EAAE,YAAY,EAAA,CAAI,CACxG,CACJ,CACG;AAEV;AAEA,OAAO,CAAC,WAAW,GAAG,SAAS;AAE/B,OAAO,CAAC,YAAY,GAAG;AACrB,IAAA,aAAa,EAAE,WAAW;CAC3B;;;;"}
@@ -0,0 +1,17 @@
1
+ import { TypographyProps } from '../Typography';
2
+ declare type Colors = 'primary.main' | 'primary.dark' | 'primary.light' | 'secondary.main' | 'secondary.dark' | 'secondary.light';
3
+ export interface DividerProps {
4
+ /** Sets the styles for a divider. */
5
+ className?: string;
6
+ /** Sets the color of the divider line. Accepts thematic color names and color codes. */
7
+ dividerColor?: Colors | string;
8
+ /** A message shown in the center of the divider */
9
+ text?: string;
10
+ /** Sets the color of the divider text. Accepts thematic color names and color codes. */
11
+ textColor?: Colors | string;
12
+ /** Sets the casing of the text */
13
+ textTransform?: 'uppercase' | 'lowercase' | 'capitalize';
14
+ /** Props applied to the internal Typography component that displays text */
15
+ TypographyProps?: TypographyProps;
16
+ }
17
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Divider } from './Divider';
2
+ export type { DividerProps } from './DividerProps';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationAltActions: () => JSX.Element | null;
@@ -0,0 +1,86 @@
1
+ import React from 'react';
2
+ import { useFollowerAuthenticationDialogContext } from './context.js';
3
+ import { makeStyles, Button, Box, Divider } from '@material-ui/core';
4
+
5
+ var useStyles = makeStyles(function () { return ({
6
+ main: {
7
+ width: '100%',
8
+ display: 'flex',
9
+ flexDirection: 'column',
10
+ gridGap: 16,
11
+ },
12
+ }); });
13
+ var FollowerAuthenticationAltActions = function () {
14
+ var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, logos = _a.logos, loading = _a.loading, onActionButtonClick = _a.onActionButtonClick;
15
+ var classes = useStyles();
16
+ switch (state.value) {
17
+ case 'initial':
18
+ return (React.createElement(Box, { className: classes.main },
19
+ React.createElement(Divider, null),
20
+ React.createElement(Button, { variant: "outlined", startIcon: logos.facebook, onClick: function () {
21
+ onActionButtonClick('sign-in-with-facebook');
22
+ } }, messages.continueWithFacebookButtonLabel),
23
+ React.createElement(Button, { variant: "outlined", startIcon: logos.google, onClick: function () {
24
+ onActionButtonClick('sign-in-with-google');
25
+ } }, messages.continueWithGoogleButtonLabel)));
26
+ case 'signUp':
27
+ return null;
28
+ case 'emailFound':
29
+ return (React.createElement(Box, { className: classes.main },
30
+ React.createElement(Divider, null),
31
+ React.createElement(Button, { variant: "outlined", onClick: function () {
32
+ onActionButtonClick('sign-in-with-password');
33
+ } }, messages.signInWithPassword)));
34
+ case 'emailAuthCode':
35
+ return (React.createElement(Box, { className: classes.main },
36
+ React.createElement(Button, { disabled: loading, variant: "outlined", onClick: function () {
37
+ var form = document.querySelector('#follower-authentication-form');
38
+ var formData = new FormData(form);
39
+ var values = Object.fromEntries(formData.entries());
40
+ onActionButtonClick('request-auth-code-email', values);
41
+ } }, messages.resendAuthCode)));
42
+ case 'indirectUserFound':
43
+ return (React.createElement(Box, { className: classes.main },
44
+ React.createElement(Divider, null),
45
+ React.createElement(Button, { variant: "outlined", onClick: function () {
46
+ onActionButtonClick('use-different-account');
47
+ } }, messages.indirectUserFoundCtaButtonLabelAlt)));
48
+ case 'emailPasswordSignIn':
49
+ return (React.createElement(Box, { className: classes.main },
50
+ React.createElement(Divider, null),
51
+ React.createElement(Button, { variant: "outlined", onClick: function () {
52
+ var form = document.querySelector('#follower-authentication-form');
53
+ var formData = new FormData(form);
54
+ var values = Object.fromEntries(formData.entries());
55
+ onActionButtonClick('request-auth-code-email', values);
56
+ } }, messages.emailFoundCtaButtonLabel)));
57
+ case 'phoneFound':
58
+ return null;
59
+ case 'phoneAuthCode':
60
+ return (React.createElement(Box, { className: classes.main },
61
+ React.createElement(Button, { disabled: loading, variant: "outlined", onClick: function () {
62
+ var form = document.querySelector('#follower-authentication-form');
63
+ var formData = new FormData(form);
64
+ var values = Object.fromEntries(formData.entries());
65
+ onActionButtonClick('request-auth-code-sms', values);
66
+ } }, messages.resendAuthCode)));
67
+ case 'phonePasswordSignIn':
68
+ return (React.createElement(Box, { className: classes.main },
69
+ React.createElement(Divider, null),
70
+ React.createElement(Button, { variant: "outlined", onClick: function () {
71
+ var form = document.querySelector('#follower-authentication-form');
72
+ var formData = new FormData(form);
73
+ var values = Object.fromEntries(formData.entries());
74
+ onActionButtonClick('request-auth-code-sms', values);
75
+ } }, messages.phoneFoundCtaButtonLabel)));
76
+ case 'welcome':
77
+ return (React.createElement(Button, { onClick: function () {
78
+ onActionButtonClick('close');
79
+ } }, messages.done));
80
+ default:
81
+ return null;
82
+ }
83
+ };
84
+
85
+ export { FollowerAuthenticationAltActions };
86
+ //# sourceMappingURL=FollowerAuthenticationAltActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowerAuthenticationAltActions.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, Button, Divider, makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles(() => ({\n main: {\n width: '100%',\n display: 'flex',\n flexDirection: 'column',\n gridGap: 16,\n },\n}))\nexport const FollowerAuthenticationAltActions = () => {\n const { state, messages, logos, loading, onActionButtonClick } = useFollowerAuthenticationDialogContext()\n const classes = useStyles()\n switch (state.value) {\n case 'initial':\n return (\n <Box className={classes.main}>\n <Divider />\n <Button\n variant=\"outlined\"\n startIcon={logos.facebook}\n onClick={() => {\n onActionButtonClick('sign-in-with-facebook')\n }}\n >\n {messages.continueWithFacebookButtonLabel}\n </Button>\n <Button\n variant=\"outlined\"\n startIcon={logos.google}\n onClick={() => {\n onActionButtonClick('sign-in-with-google')\n }}\n >\n {messages.continueWithGoogleButtonLabel}\n </Button>\n </Box>\n )\n case 'signUp':\n return null\n case 'emailFound':\n return (\n <Box className={classes.main}>\n <Divider />\n <Button\n variant=\"outlined\"\n onClick={() => {\n onActionButtonClick('sign-in-with-password')\n }}\n >\n {messages.signInWithPassword}\n </Button>\n </Box>\n )\n case 'emailAuthCode':\n return (\n <Box className={classes.main}>\n <Button\n disabled={loading}\n variant=\"outlined\"\n onClick={() => {\n const form = document.querySelector('#follower-authentication-form') as HTMLFormElement\n const formData = new FormData(form)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n onActionButtonClick('request-auth-code-email', values)\n }}\n >\n {messages.resendAuthCode}\n </Button>\n </Box>\n )\n case 'indirectUserFound':\n return (\n <Box className={classes.main}>\n <Divider />\n <Button\n variant=\"outlined\"\n onClick={() => {\n onActionButtonClick('use-different-account')\n }}\n >\n {messages.indirectUserFoundCtaButtonLabelAlt}\n </Button>\n </Box>\n )\n case 'emailPasswordSignIn':\n return (\n <Box className={classes.main}>\n <Divider />\n <Button\n variant=\"outlined\"\n onClick={() => {\n const form = document.querySelector('#follower-authentication-form') as HTMLFormElement\n const formData = new FormData(form)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n onActionButtonClick('request-auth-code-email', values)\n }}\n >\n {messages.emailFoundCtaButtonLabel}\n </Button>\n </Box>\n )\n case 'phoneFound':\n return null\n case 'phoneAuthCode':\n return (\n <Box className={classes.main}>\n <Button\n disabled={loading}\n variant=\"outlined\"\n onClick={() => {\n const form = document.querySelector('#follower-authentication-form') as HTMLFormElement\n const formData = new FormData(form)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n onActionButtonClick('request-auth-code-sms', values)\n }}\n >\n {messages.resendAuthCode}\n </Button>\n </Box>\n )\n case 'phonePasswordSignIn':\n return (\n <Box className={classes.main}>\n <Divider />\n <Button\n variant=\"outlined\"\n onClick={() => {\n const form = document.querySelector('#follower-authentication-form') as HTMLFormElement\n const formData = new FormData(form)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n onActionButtonClick('request-auth-code-sms', values)\n }}\n >\n {messages.phoneFoundCtaButtonLabel}\n </Button>\n </Box>\n )\n case 'welcome':\n return (\n <Button\n onClick={() => {\n onActionButtonClick('close')\n }}\n >\n {messages.done}\n </Button>\n )\n default:\n return null\n }\n}\n"],"names":[],"mappings":";;;;AAIA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,OAAO,EAAE,EAAE;AACZ,KAAA;CACF,EAAC,EAAA,CAAC;AACU,IAAA,gCAAgC,GAAG,YAAA;AACxC,IAAA,IAAA,KAA2D,sCAAsC,EAAE,EAAjG,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,KAAK,WAAA,EAAE,OAAO,aAAA,EAAE,mBAAmB,yBAA6C;AACzG,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;IAC3B,QAAQ,KAAK,CAAC,KAAK;AACjB,QAAA,KAAK,SAAS;YACZ,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAA;AAC1B,gBAAA,KAAA,CAAA,aAAA,CAAC,OAAO,EAAG,IAAA,CAAA;AACX,gBAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,OAAO,EAAC,UAAU,EAClB,SAAS,EAAE,KAAK,CAAC,QAAQ,EACzB,OAAO,EAAE,YAAA;wBACP,mBAAmB,CAAC,uBAAuB,CAAC;AAC9C,qBAAC,EAEA,EAAA,QAAQ,CAAC,+BAA+B,CAClC;AACT,gBAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,OAAO,EAAC,UAAU,EAClB,SAAS,EAAE,KAAK,CAAC,MAAM,EACvB,OAAO,EAAE,YAAA;wBACP,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Q,CAAC,cAAc,CACjB,CACL;AAEV,QAAA,KAAK,qBAAqB;YACxB,QACE,oBAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAA;AAC1B,gBAAA,KAAA,CAAA,aAAA,CAAC,OAAO,EAAG,IAAA,CAAA;AACX,gBAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EACL,EAAA,OAAO,EAAC,UAAU,EAClB,OAAO,EAAE,YAAA;wBACP,IAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,+BAA+B,CAAoB;AACvF,wBAAA,IAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC;wBACnC,IAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,CAA2B;AAC/E,wBAAA,mBAAmB,CAAC,uBAAuB,EAAE,MAAM,CAAC;AACtD,qBAAC,IAEA,QAAQ,CAAC,wBAAwB,CAC3B,CACL;AAEV,QAAA,KAAK,SAAS;AACZ,YAAA,QACE,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,OAAO,EAAE,YAAA;oBACP,mBAAmB,CAAC,OAAO,CAAC;AAC9B,iBAAC,IAEA,QAAQ,CAAC,IAAI,CACP;AAEb,QAAA;AACE,YAAA,OAAO,IAAI;AACd;AACH;;;;"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationBody: () => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { FollowerAuthenticationForm } from './FollowerAuthenticationForm.js';
3
+ import { FollowerAuthenticationAltActions } from './FollowerAuthenticationAltActions.js';
4
+
5
+ var FollowerAuthenticationBody = function () {
6
+ return (React.createElement(React.Fragment, null,
7
+ React.createElement(FollowerAuthenticationForm, null),
8
+ React.createElement(FollowerAuthenticationAltActions, null)));
9
+ };
10
+
11
+ export { FollowerAuthenticationBody };
12
+ //# sourceMappingURL=FollowerAuthenticationBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowerAuthenticationBody.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.tsx"],"sourcesContent":["import React from 'react'\nimport { FollowerAuthenticationForm } from './FollowerAuthenticationForm'\nimport { FollowerAuthenticationAltActions } from './FollowerAuthenticationAltActions'\n\nexport const FollowerAuthenticationBody = () => {\n return (\n <React.Fragment>\n <FollowerAuthenticationForm />\n <FollowerAuthenticationAltActions />\n </React.Fragment>\n )\n}\n"],"names":[],"mappings":";;;;AAIa,IAAA,0BAA0B,GAAG,YAAA;AACxC,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAQ,EAAA,IAAA;AACb,QAAA,KAAA,CAAA,aAAA,CAAC,0BAA0B,EAAG,IAAA,CAAA;AAC9B,QAAA,KAAA,CAAA,aAAA,CAAC,gCAAgC,EAAA,IAAA,CAAG,CACrB;AAErB;;;;"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationCloseButton: () => JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { makeStyles, IconButton } from '@material-ui/core';
2
+ import React from 'react';
3
+ import { useFollowerAuthenticationDialogContext } from './context.js';
4
+ import { X } from '@popmenu/web-icons';
5
+
6
+ var useStyles = makeStyles(function () { return ({
7
+ root: {
8
+ position: 'absolute',
9
+ top: 0,
10
+ right: 0,
11
+ },
12
+ }); });
13
+ var FollowerAuthenticationCloseButton = function () {
14
+ var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, onActionButtonClick = _a.onActionButtonClick;
15
+ var classes = useStyles();
16
+ var handleClose = function () {
17
+ onActionButtonClick('close');
18
+ };
19
+ return (React.createElement(IconButton, { classes: classes, "aria-label": messages.closeButtonLabel, onClick: handleClose },
20
+ React.createElement(X, null)));
21
+ };
22
+
23
+ export { FollowerAuthenticationCloseButton };
24
+ //# sourceMappingURL=FollowerAuthenticationCloseButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowerAuthenticationCloseButton.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.tsx"],"sourcesContent":["import { IconButton, makeStyles } from '@material-ui/core'\nimport React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { X as XIcon } from '@popmenu/web-icons'\n\nconst useStyles = makeStyles(() => ({\n root: {\n position: 'absolute',\n top: 0,\n right: 0,\n },\n}))\nexport const FollowerAuthenticationCloseButton = () => {\n const { messages, onActionButtonClick } = useFollowerAuthenticationDialogContext()\n const classes = useStyles()\n const handleClose = () => {\n onActionButtonClick('close')\n }\n return (\n <IconButton classes={classes} aria-label={messages.closeButtonLabel} onClick={handleClose}>\n <XIcon />\n </IconButton>\n )\n}\n"],"names":["XIcon"],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,GAAG,EAAE,CAAC;AACN,QAAA,KAAK,EAAE,CAAC;AACT,KAAA;CACF,EAAC,EAAA,CAAC;AACU,IAAA,iCAAiC,GAAG,YAAA;IACzC,IAAA,EAAA,GAAoC,sCAAsC,EAAE,EAA1E,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,mBAAmB,GAAA,EAAA,CAAA,mBAA6C;AAClF,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;AAC3B,IAAA,IAAM,WAAW,GAAG,YAAA;QAClB,mBAAmB,CAAC,OAAO,CAAC;AAC9B,KAAC;AACD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAE,OAAO,EAAc,YAAA,EAAA,QAAQ,CAAC,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAA;AACvF,QAAA,KAAA,CAAA,aAAA,CAACA,CAAK,EAAA,IAAA,CAAG,CACE;AAEjB;;;;"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const FollowerAuthenticationContent: (props: {
3
+ children: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { makeStyles, DialogContent } from '@material-ui/core';
3
+
4
+ var useStyles = makeStyles(function () { return ({
5
+ root: {
6
+ display: 'flex',
7
+ flexDirection: 'column',
8
+ alignItems: 'center',
9
+ gridGap: 16,
10
+ },
11
+ }); });
12
+ var FollowerAuthenticationContent = function (props) {
13
+ var classes = useStyles();
14
+ return React.createElement(DialogContent, { classes: classes }, props.children);
15
+ };
16
+
17
+ export { FollowerAuthenticationContent };
18
+ //# sourceMappingURL=FollowerAuthenticationContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowerAuthenticationContent.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.tsx"],"sourcesContent":["import React from 'react'\nimport { DialogContent, makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles(() => ({\n root: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gridGap: 16,\n },\n}))\nexport const FollowerAuthenticationContent = (props: { children: React.ReactNode }) => {\n const classes = useStyles()\n return <DialogContent classes={classes}>{props.children}</DialogContent>\n}\n"],"names":[],"mappings":";;;AAGA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,OAAO,EAAE,EAAE;AACZ,KAAA;CACF,EAAC,EAAA,CAAC;AACI,IAAM,6BAA6B,GAAG,UAAC,KAAoC,EAAA;AAChF,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;IAC3B,OAAO,KAAA,CAAA,aAAA,CAAC,aAAa,EAAA,EAAC,OAAO,EAAE,OAAO,EAAA,EAAG,KAAK,CAAC,QAAQ,CAAiB;AAC1E;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
3
+ export declare const FollowerAuthenticationDialog: (props: FollowerAuthenticationDialogProps) => JSX.Element;